Skip to content

Commit

Permalink
Fixed loading/setting parameters.
Browse files Browse the repository at this point in the history
We need to set them after to load xml config files otherwise they are override by the default values.
  • Loading branch information
Fabien Pennequin committed Oct 2, 2011
1 parent bc5cfba commit df3e136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DependencyInjection/HerzultForumExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ public function load(array $configs, ContainerBuilder $container)
$configuration = new Configuration();
$config = $this->processConfiguration($configuration, $configs);

$this->loadParameters($config, $container);

$loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
$loader->load('model.xml');
$loader->load('controller.xml');
Expand All @@ -29,6 +27,8 @@ public function load(array $configs, ContainerBuilder $container)
$loader->load('router.xml');

$loader->load(sprintf('%s.xml', $config['db_driver']));

$this->loadParameters($config, $container);
}

private function loadParameters(array $config, ContainerBuilder $container)
Expand Down

0 comments on commit df3e136

Please sign in to comment.