From b889dcbd70796a16495b7b1f70165272ed1bbd96 Mon Sep 17 00:00:00 2001 From: Sebastian Ionescu Date: Sun, 26 Sep 2010 01:08:34 +0300 Subject: [PATCH] updated listing for routing.php --- quick_tour/the_big_picture.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/quick_tour/the_big_picture.rst b/quick_tour/the_big_picture.rst index 2d043645425..5ca1f6bda78 100644 --- a/quick_tour/the_big_picture.rst +++ b/quick_tour/the_big_picture.rst @@ -148,12 +148,10 @@ So, Symfony routes the request by reading the routing configuration file: use Symfony\Component\Routing\Route; $collection = new RouteCollection(); - $collection->addRoute('homepage', new Route('/', array( '_controller' => 'FrameworkBundle:Default:index', ))); - - $collection->import('HelloBundle/Resources/config/routing.php'); + $collection->addCollection($loader->import("HelloBundle/Resources/config/routing.php")); return $collection;