Skip to content

Commit

Permalink
add sf document classes as param
Browse files Browse the repository at this point in the history
  • Loading branch information
Gyvastis committed Sep 16, 2021
1 parent 433591b commit 7109539
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/DependencyInjection/SalesforceMapperExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace PhpArsenal\SalesforceMapperBundle\DependencyInjection;

use PhpArsenal\SalesforceMapperBundle\Builder\SalesforceDocumentClassTreeBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader;
Expand Down Expand Up @@ -38,6 +39,10 @@ public function load(array $configs, ContainerBuilder $container)

$yamlLoader->load('param_converter.yml');
$container->setParameter('salesforce_mapper.param_converter', $config['param_converter']);

/** @var SalesforceDocumentClassTreeBuilder $sfDocumentClassTreeBuilder */
$sfDocumentClassTreeBuilder = $container->get(SalesforceDocumentClassTreeBuilder::class);
$container->setParameter('salesforce_mapper.document_classes', $sfDocumentClassTreeBuilder->build());
}
}

0 comments on commit 7109539

Please sign in to comment.