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)
|
protected function outputRoutes(OutputInterface $output, $routes = null)
|
||||||
{
|
{
|
||||||
if (null === $routes) {
|
if (null === $routes) {
|
||||||
$routes = array();
|
$routes = $this->getContainer()->get('router')->getRouteCollection()->all();
|
||||||
foreach ($this->getContainer()->get('router')->getRouteCollection()->all() as $name => $route) {
|
|
||||||
$routes[$name] = $route->compile();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$output->writeln($this->getHelper('formatter')->formatSection('router', 'Current routes'));
|
$output->writeln($this->getHelper('formatter')->formatSection('router', 'Current routes'));
|
||||||
|
Reference in New Issue
Block a user