[DoctrineBundle] Fixed loggin in DoctrineExtension not being taken into account
This commit is contained in:
parent
03e51cc1e2
commit
3564b86ee9
@ -154,7 +154,7 @@ class DoctrineExtension extends AbstractDoctrineExtension
|
||||
{
|
||||
$containerDef = new Definition($container->getParameter('doctrine.dbal.configuration_class'));
|
||||
$containerDef->setPublic(false);
|
||||
if (isset($connection['logging']) && $connection['logging']) {
|
||||
if (isset($connection['container']['logging']) && $connection['container']['logging']) {
|
||||
$containerDef->addMethodCall('setSQLLogger', array(new Reference('doctrine.dbal.logger')));
|
||||
}
|
||||
$container->setDefinition(sprintf('doctrine.dbal.%s_connection.configuration', $connection['name']), $containerDef);
|
||||
|
Reference in New Issue
Block a user