File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
src/Symfony/Bundle/FrameworkBundle/CacheWarmer Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -69,12 +69,19 @@ public function warmUp(string $cacheDir)
69
69
70
70
private function dumpExtension (ExtensionInterface $ extension , ConfigBuilderGeneratorInterface $ generator ): void
71
71
{
72
+ $ configuration = null ;
72
73
if ($ extension instanceof ConfigurationInterface) {
73
74
$ configuration = $ extension ;
74
75
} elseif ($ extension instanceof ConfigurationExtensionInterface) {
75
76
$ configuration = $ extension ->getConfiguration ([], $ this ->getContainerBuilder ($ this ->kernel ));
76
- } else {
77
- throw new \LogicException (sprintf ('Could not get configuration for extension "%s". ' , \get_class ($ extension )));
77
+ }
78
+
79
+ if (!$ configuration ) {
80
+ if ($ this ->logger ) {
81
+ $ this ->logger ->info ('No configuration found for extension {extensionClass}. ' , ['extensionClass ' => \get_class ($ extension )]);
82
+ }
83
+
84
+ return ;
78
85
}
79
86
80
87
$ generator ->build ($ configuration );
You can’t perform that action at this time.
0 commit comments