Skip to content

Commit 0fbfc4d

Browse files
committed
Fixed: failing test
1 parent 286834d commit 0fbfc4d

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

pkg/enqueue-bundle/DependencyInjection/EnqueueExtension.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,15 @@ private function registerJobQueueDoctrineEntityMapping(ContainerBuilder $contain
171171
return;
172172
}
173173

174-
$config = $this->processConfiguration(
175-
new Configuration(false),
176-
$container->getExtensionConfig('enqueue')
177-
);
174+
$config = $container->getExtensionConfig('enqueue');
178175

179-
foreach ($config as $name => $modules) {
180-
if (isset($modules['job']) && false === $modules['job']['default_mapping']) {
181-
return;
176+
if (!empty($config)) {
177+
$processedConfig = $this->processConfiguration(new Configuration(false), $config);
178+
179+
foreach ($processedConfig as $name => $modules) {
180+
if (isset($modules['job']) && false === $modules['job']['default_mapping']) {
181+
return;
182+
}
182183
}
183184
}
184185

0 commit comments

Comments
 (0)