fixed typo (thanks @stof)
This commit is contained in:
parent
8c32a8e936
commit
91da592c7c
@ -24,14 +24,14 @@ class RouterDataCollector extends BaseRouterDataCollector
|
||||
{
|
||||
public function guessRoute(Request $request, $controller)
|
||||
{
|
||||
if (!$controller instanceof RedirectController) {
|
||||
return parent::guessRoute($request, $controller);
|
||||
}
|
||||
|
||||
if (is_array($controller)) {
|
||||
$controller = $controller[0];
|
||||
}
|
||||
|
||||
if (!$controller instanceof RedirectController) {
|
||||
return parent::guessRoute($request, $controller);
|
||||
}
|
||||
|
||||
if ($controller instanceof RedirectController) {
|
||||
return $request->attributes->get('_route');
|
||||
}
|
||||
|
Reference in New Issue
Block a user