bug #29584 [FrameworkBundle] fix describing routes with no controllers (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
-------

a1c612aedf [FrameworkBundle] fix describing routes with no controllers
This commit is contained in:
Nicolas Grekas 2018-12-12 18:36:44 +01:00
commit 7a34a78be6

View File

@ -56,7 +56,7 @@ class TextDescriptor extends Descriptor
if ($showControllers) {
$controller = $route->getDefault('_controller');
$row[] = $this->formatCallable($controller);
$row[] = $controller ? $this->formatCallable($controller) : '';
}
$tableRows[] = $row;