fixed bug related to the change PR #5326

This commit is contained in:
Shin 2012-08-24 23:33:39 +09:00
parent 602a45880f
commit b1a9587ea7

View File

@ -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'));