소스 검색

Remove a useless test

Victor Berchet 14 년 전
부모
커밋
d300fd6131
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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());
         }
     }