File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Symfony/Component/HttpKernel/Bundle Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -74,11 +74,11 @@ public function getContainerExtension()
74
74
if (null === $ this ->extension ) {
75
75
$ extension = $ this ->createContainerExtension ();
76
76
77
- if (!$ extension instanceof ExtensionInterface) {
78
- throw new \LogicException (sprintf ('Extension %s must implement Symfony\Component\DependencyInjection\Extension\ExtensionInterface. ' , get_class ($ extension )));
79
- }
80
-
81
77
if (null !== $ extension ) {
78
+ if (!$ extension instanceof ExtensionInterface) {
79
+ throw new \LogicException (sprintf ('Extension %s must implement Symfony\Component\DependencyInjection\Extension\ExtensionInterface. ' , get_class ($ extension )));
80
+ }
81
+
82
82
// check naming convention
83
83
$ basename = preg_replace ('/Bundle$/ ' , '' , $ this ->getName ());
84
84
$ expectedAlias = Container::underscore ($ basename );
You can’t perform that action at this time.
0 commit comments