From b1a9587ea781c4a378542adea005633a01f31816 Mon Sep 17 00:00:00 2001 From: Shin Date: Fri, 24 Aug 2012 23:33:39 +0900 Subject: [PATCH] fixed bug related to the change PR #5326 --- .../Bundle/FrameworkBundle/Command/RouterDebugCommand.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php index c1ed499c3f..e469ac21d7 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php @@ -77,10 +77,7 @@ EOF protected function outputRoutes(OutputInterface $output, $routes = null) { if (null === $routes) { - $routes = array(); - foreach ($this->getContainer()->get('router')->getRouteCollection()->all() as $name => $route) { - $routes[$name] = $route->compile(); - } + $routes = $this->getContainer()->get('router')->getRouteCollection()->all(); } $output->writeln($this->getHelper('formatter')->formatSection('router', 'Current routes'));