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)
|
public function guessRoute(Request $request, $controller)
|
||||||
{
|
{
|
||||||
if (!$controller instanceof RedirectController) {
|
|
||||||
return parent::guessRoute($request, $controller);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (is_array($controller)) {
|
if (is_array($controller)) {
|
||||||
$controller = $controller[0];
|
$controller = $controller[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!$controller instanceof RedirectController) {
|
||||||
|
return parent::guessRoute($request, $controller);
|
||||||
|
}
|
||||||
|
|
||||||
if ($controller instanceof RedirectController) {
|
if ($controller instanceof RedirectController) {
|
||||||
return $request->attributes->get('_route');
|
return $request->attributes->get('_route');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user