Parcourir la source

Remove a useless test

Victor Berchet il y a 14 ans
Parent
commit
d300fd6131
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  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());
         }
     }