Skip to content

Commit

Permalink
Merge pull request #21 from roukmoute/fix_config
Browse files Browse the repository at this point in the history
Fix parameter definition and move to the top config processing in the extension
  • Loading branch information
lisachenko authored Feb 9, 2018
2 parents 0433bf2 + a3264da commit 57673ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions DependencyInjection/GoAopExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ public function getXsdValidationBasePath()
*/
public function load(array $config, ContainerBuilder $container)
{
$loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
$loader->load('services.xml');
$loader->load('commands.xml');

$configurator = new Configuration();
$config = $this->processConfiguration($configurator, $config);

Expand All @@ -58,10 +62,6 @@ public function load(array $config, ContainerBuilder $container)
}
$container->setParameter('goaop.options', $normalizedOptions);

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

if ($config['cache_warmer']) {
$definition = $container->getDefinition('goaop.cache.warmer');
$definition->addTag('kernel.cache_warmer');
Expand Down
2 changes: 1 addition & 1 deletion Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

<parameters>
<parameter id="goaop.options" type="collection"/>
<parameter key="goaop.options" type="collection"/>
</parameters>

<services>
Expand Down

0 comments on commit 57673ba

Please sign in to comment.