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());
         }
     }