[DoctrineBundle] added a doctrine.dbal.connections parameter that keeps the list of registered DBAL connections
This commit is contained in:
parent
43e38c3ba4
commit
a607afb8d2
@ -71,6 +71,12 @@ class DoctrineExtension extends AbstractDoctrineExtension
|
||||
|
||||
$container->getDefinition('doctrine.dbal.connection_factory')->replaceArgument(0, $config['types']);
|
||||
|
||||
$connections = array();
|
||||
foreach (array_keys($config['connections']) as $name) {
|
||||
$connections[$name] = sprintf('doctrine.dbal.%s_connection', $name);
|
||||
}
|
||||
$container->setParameter('doctrine.dbal.connections', $connections);
|
||||
|
||||
foreach ($config['connections'] as $name => $connection) {
|
||||
$this->loadDbalConnection($name, $connection, $container);
|
||||
}
|
||||
|
Reference in New Issue
Block a user