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:
commit
7a34a78be6
@ -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;
|
||||
|
Reference in New Issue
Block a user