[FrameworkBundle] Fix Routing\DelegatingLoader
This commit is contained in:
parent
a40c94d8e3
commit
a69c1b2ae1
|
@ -85,7 +85,7 @@ class DelegatingLoader extends BaseDelegatingLoader
|
|||
$this->loading = false;
|
||||
|
||||
foreach ($collection->all() as $route) {
|
||||
if (!$controller = $route->getDefault('_controller')) {
|
||||
if (!is_string($controller = $route->getDefault('_controller')) || !$controller) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -44,3 +44,7 @@ fragment_home:
|
|||
fragment_inlined:
|
||||
path: /fragment_inlined
|
||||
defaults: { _controller: TestBundle:Fragment:inlined }
|
||||
|
||||
array_controller:
|
||||
path: /array_controller
|
||||
defaults: { _controller: [ArrayController, someAction] }
|
||||
|
|
Reference in New Issue