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 dfb79e3 commit 912fbbfCopy full SHA for 912fbbf
src/Bridges/DatabaseDI/DatabaseExtension.php
@@ -42,12 +42,9 @@ public function __construct(bool $debugMode = false)
42
public function loadConfiguration()
43
{
44
$configs = $this->getConfig();
45
- foreach ($configs as $k => $v) {
46
- if (is_scalar($v)) {
47
- $configs = ['default' => $configs];
48
- break;
49
- }
50
+ $configs = is_array(reset($configs))
+ ? $configs
+ : ['default' => $configs];
51
52
$defaults = $this->databaseDefaults;
53
$defaults['autowired'] = true;
0 commit comments