Permalink
Browse files

bug #27710 [DependencyInjection] fix handling of empty DI extension c…

…onfigs (xabbuh)

This PR was merged into the 4.1 branch.

Discussion
----------

[DependencyInjection] fix handling of empty DI extension configs

| Q             | A
| ------------- | ---
| Branch?       | 4.1
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #27707
| License       | MIT
| Doc PR        |

Commits
-------

05d4bcb fix handling of empty DI extension configs
  • Loading branch information...
nicolas-grekas committed Jun 29, 2018
2 parents 5f0eae6 + 05d4bcb commit d4561e4a65adc0c06d0907107552d9318c9d0a0a
@@ -65,7 +65,7 @@ public function process(ContainerBuilder $container)
$processor = new Processor();
foreach ($extensions as $name => $extension) {
if (!$extension instanceof ConfigurationExtensionInterface || !$config = $container->getExtensionConfig($name)) {
if (!$extension instanceof ConfigurationExtensionInterface || !$config = array_filter($container->getExtensionConfig($name))) {
// this extension has no semantic configuration or was not called
continue;
}

0 comments on commit d4561e4

Please sign in to comment.