Kaynağa Gözat

[FrameworkBundle] fixed skeleton

Fabien Potencier 14 yıl önce
ebeveyn
işleme
a4d496309b

+ 1 - 2
src/Symfony/Bundle/FrameworkBundle/Resources/skeleton/application/generic/Kernel.php

@@ -28,11 +28,10 @@ class {{ class }}Kernel extends Kernel
             //new Symfony\Bundle\TwigBundle\TwigBundle(),
 
             // register your bundles
-            new Application\HelloBundle\HelloBundle(),
         );
 
         if ($this->isDebug()) {
-            $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(),
+            $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
         }
 
         return $bundles;

+ 0 - 1
src/Symfony/Bundle/FrameworkBundle/Resources/skeleton/application/php/config/routing.php

@@ -7,6 +7,5 @@ $collection = new RouteCollection();
 $collection->addRoute('homepage', new Route('/', array(
     '_controller' => 'FrameworkBundle:Default:index',
 )));
-$collection->addCollection($loader->import("HelloBundle/Resources/config/routing.php"));
 
 return $collection;

+ 0 - 2
src/Symfony/Bundle/FrameworkBundle/Resources/skeleton/application/xml/config/routing.xml

@@ -7,6 +7,4 @@
     <route id="homepage" pattern="/">
         <default key="_controller">FrameworkBundle:Default:index</default>
     </route>
-
-    <import resource="HelloBundle/Resources/config/routing.xml" />
 </routes>

+ 0 - 3
src/Symfony/Bundle/FrameworkBundle/Resources/skeleton/application/yml/config/routing.yml

@@ -1,6 +1,3 @@
 homepage:
     pattern:  /
     defaults: { _controller: FrameworkBundle:Default:index }
-
-hello:
-    resource: HelloBundle/Resources/config/routing.yml