Property | Type | Description | |
---|---|---|---|
$authentication | |||
$session | Symfony\Component\HttpFoundation\Session\Session | ||
$urlGenerator | Symfony\Component\Routing\Generator\UrlGeneratorInterface | ||
$users |
Method | Description | |
---|---|---|
__construct ( Symfony\Component\HttpFoundation\Session\Session $session, Symfony\Component\Routing\Generator\UrlGeneratorInterface $urlGenerator, |
RedirectListener constructor. | |
getSubscribedEvents ( ) : array | Return the events to subscribe to. | |
onResponse ( |
Kernel response listener callback. |
Method | Description | |
---|---|---|
handleLoginRetreat ( |
When redirecting to login page set the 'retreat' variable in the session. | |
handleNoBackendAccess ( |
When redirecting to the backend dashboard (while logged in), if the user does not have access change the redirect to the homepage. |
public __construct ( Symfony\Component\HttpFoundation\Session\Session $session, Symfony\Component\Routing\Generator\UrlGeneratorInterface $urlGenerator, |
||
$session | Symfony\Component\HttpFoundation\Session\Session | |
$urlGenerator | Symfony\Component\Routing\Generator\UrlGeneratorInterface | |
$users | ||
$authentication |
public static getSubscribedEvents ( ) : array | ||
return | array |
protected handleLoginRetreat ( |
||
$request | ||
$response |
protected handleNoBackendAccess ( |
||
$response |
public onResponse ( |
||
$event |
protected AccessChecker,Bolt\AccessControl $authentication | ||
return |
protected Session,Symfony\Component\HttpFoundation\Session $session | ||
return | Symfony\Component\HttpFoundation\Session\Session |
protected UrlGeneratorInterface,Symfony\Component\Routing\Generator $urlGenerator | ||
return | Symfony\Component\Routing\Generator\UrlGeneratorInterface |