Explorar o código

Remove a useless test

Victor Berchet %!s(int64=14) %!d(string=hai) anos
pai
achega
d300fd6131
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      src/Symfony/Component/HttpKernel/Bundle/Bundle.php

+ 1 - 3
src/Symfony/Component/HttpKernel/Bundle/Bundle.php

@@ -123,9 +123,7 @@ abstract class Bundle extends ContainerAware implements BundleInterface
         foreach ($finder as $file) {
             $class = $prefix.strtr($file->getPath(), array($dir => '', '/' => '\\')).'\\'.$file->getBasename('.php');
 
-            if ('Extension' === substr($class, -9)) {
-                $container->registerExtension(new $class());
-            }
+            $container->registerExtension(new $class());
         }
     }