We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a89576c commit b031a9dCopy full SHA for b031a9d
src/Bridges/SymfonyBundle/DependencyInjection/NextrasDbalExtension.php
@@ -59,6 +59,10 @@ private function loadConnection(
59
ContainerInterface::NULL_ON_INVALID_REFERENCE,
60
);
61
62
+ if (isset($config['driver']) && is_string($config['driver']) && str_starts_with($config['driver'], '@')) {
63
+ $config['driver'] = new Reference(ltrim($config['driver'], '@'));
64
+ }
65
+
66
$connectionDefinition = new Definition(Connection::class);
67
$connectionDefinition->setArgument('$config', $config);
68
$connectionDefinition->setPublic(true);
0 commit comments