|
|
|
|
|
|
|
|
$requestAttributes = $this->requestStack->getCurrentRequest()->attributes->all(); |
|
|
$requestAttributes = $this->requestStack->getCurrentRequest()->attributes->all(); |
|
|
$route = isset($requestAttributes['_route']) ? $requestAttributes['_route'] : false; |
|
|
$route = isset($requestAttributes['_route']) ? $requestAttributes['_route'] : false; |
|
|
|
|
|
|
|
|
return $route && ($route == 'easyadmin' || strpos($route, 'admin_') !== false) ; |
|
|
|
|
|
|
|
|
return $route && (in_array($route, ['sov_login', 'sov_logout']) || strpos($route, 'admin_') !== false) ; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |