Permalink
Browse files

Add getConfiguration() method to allow configuration dumping

  • Loading branch information...
1 parent 62eb1ec commit 3db85fbad5a65fd59b866b9497aeba1794b439e9 @willdurand willdurand committed Jul 6, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 DependencyInjection/PropelExtension.php
View
7 DependencyInjection/PropelExtension.php
@@ -33,7 +33,7 @@ class PropelExtension extends Extension
public function load(array $configs, ContainerBuilder $container)
{
$processor = new Processor();
- $configuration = new Configuration($container->getParameter('kernel.debug'));
+ $configuration = $this->getConfiguration($configs, $container);
$config = $processor->processConfiguration($configuration, $configs);
// Composer
@@ -130,6 +130,11 @@ protected function dbalLoad(array $config, ContainerBuilder $container)
$container->getDefinition('propel.configuration')->setArguments(array($c));
}
+ public function getConfiguration(array $config, ContainerBuilder $container)
+ {
+ return new Configuration($container->getParameter('kernel.debug'));
+ }
+
/**
* Returns the base path for the XSD files.
*

0 comments on commit 3db85fb

Please sign in to comment.