File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed 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)
6969
7070 private function dumpExtension (ExtensionInterface $ extension , ConfigBuilderGeneratorInterface $ generator ): void
7171 {
72+ $ configuration = null ;
7273 if ($ extension instanceof ConfigurationInterface) {
7374 $ configuration = $ extension ;
7475 } elseif ($ extension instanceof ConfigurationExtensionInterface) {
7576 $ 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 ;
7885 }
7986
8087 $ generator ->build ($ configuration );
You can’t perform that action at this time.
0 commit comments