Skip to content

Commit

Permalink
Fixed dependency injection
Browse files Browse the repository at this point in the history
  • Loading branch information
pix-art committed Dec 8, 2016
1 parent c7cccc3 commit 9587b82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DependencyInjection/LexikTranslationSonataExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\Config\FileLocator;

class LexikTranslationSonataExtension extends Extension
{
Expand All @@ -18,5 +19,8 @@ public function load(array $configs, ContainerBuilder $container)

$container->setParameter('lexik_translation_sonata.auto_discover', $config['auto_discover']);
$container->setParameter('lexik_translation_sonata.auto_discover_domains', $config['auto_discover_domains']);

$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.xml');
}
}

0 comments on commit 9587b82

Please # to comment.