Skip to content

Commit

Permalink
bug #29584 [FrameworkBundle] fix describing routes with no controller…
Browse files Browse the repository at this point in the history
…s (nicolas-grekas)

This PR was merged into the 3.4 branch.

Discussion
----------

[FrameworkBundle] fix describing routes with no controllers

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Spotted by @jpauli during a training.

Commits
-------

a1c612a [FrameworkBundle] fix describing routes with no controllers
  • Loading branch information
nicolas-grekas committed Dec 12, 2018
2 parents 7028f84 + a1c612a commit 7a34a78
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -56,7 +56,7 @@ protected function describeRouteCollection(RouteCollection $routes, array $optio

if ($showControllers) {
$controller = $route->getDefault('_controller');
$row[] = $this->formatCallable($controller);
$row[] = $controller ? $this->formatCallable($controller) : '';
}

$tableRows[] = $row;
Expand Down

0 comments on commit 7a34a78

Please sign in to comment.