fixed bug related to the change PR #5326
This commit is contained in:
parent
602a45880f
commit
b1a9587ea7
@ -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'));
|
||||
|
Reference in New Issue
Block a user