Fabien Potencier 14 سال پیش
والد
کامیت
272933d2ce

+ 1 - 1
src/Symfony/Bundle/FrameworkBundle/Controller/ControllerNameConverter.php

@@ -102,7 +102,7 @@ class ControllerNameConverter
             $prefix = null;
             foreach ($this->kernel->getBundles() as $b) {
                 if ($bundle === $b->getName()) {
-                    $prefix = $b->getNamespaceName();
+                    $prefix = $b->getNamespace();
 
                     break;
                 }

+ 2 - 2
src/Symfony/Bundle/FrameworkBundle/Templating/TemplateNameParser.php

@@ -58,8 +58,8 @@ class TemplateNameParser extends BaseTemplateNameParser
                 }
 
                 foreach (array_keys($this->kernel->getBundleDirs()) as $prefix) {
-                    if (0 === $pos = strpos($b->getNamespaceName(), $prefix)) {
-                        $bundle = str_replace($prefix.'\\', '', $b->getNamespaceName());
+                    if (0 === $pos = strpos($b->getNamespace(), $prefix)) {
+                        $bundle = str_replace($prefix.'\\', '', $b->getNamespace());
 
                         break 2;
                     }

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

@@ -63,7 +63,7 @@ abstract class Bundle extends ContainerAware implements BundleInterface
      *
      * @return string The Bundle namespace
      */
-    public function getNamespaceName()
+    public function getNamespace()
     {
         if (null === $this->name) {
             $this->initReflection();

+ 1 - 2
src/Symfony/Component/HttpKernel/bootstrap.php

@@ -9,7 +9,6 @@ abstract class Bundle extends ContainerAware implements BundleInterface
 {
     protected $name;
     protected $namespace;
-    protected $namespacePrefix;
     protected $path;
     protected $reflection;
     public function boot()
@@ -25,7 +24,7 @@ abstract class Bundle extends ContainerAware implements BundleInterface
         }
         return $this->name;
     }
-    public function getNamespaceName()
+    public function getNamespace()
     {
         if (null === $this->name) {
             $this->initReflection();