Skip to content

Commit

Permalink
process configuration on the extension
Browse files Browse the repository at this point in the history
  • Loading branch information
othillo committed Oct 21, 2017
1 parent 459cee3 commit f5f14c4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions DependencyInjection/QandidateToggleExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

namespace Qandidate\Bundle\ToggleBundle\DependencyInjection;

use Symfony\Component\Config\Definition\Processor;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\DefinitionDecorator;
Expand All @@ -29,8 +28,7 @@ public function load(array $configs, ContainerBuilder $container)
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config/'));
$loader->load('services.xml');

$processor = new Processor();
$config = $processor->processConfiguration(new Configuration(), $configs);
$config = $this->processConfiguration(new Configuration(), $configs);
$collection = 'in_memory';
switch (true) {
case 'redis' === $config['persistence']:
Expand Down

0 comments on commit f5f14c4

Please sign in to comment.