BeforeRedirectEvent
FinalYes
Notification before a redirect is made, which also allows to modify the actual redirect URL. Setting the redirect to an empty string will avoid triggering a redirect.
Table of Contents
Methods
- __construct() : mixed
- getLoginType() : string
- getRedirectUrl() : string
- getRequest() : ServerRequestInterface
- setRedirectUrl() : void
Methods
__construct()
public
__construct(string $loginType, string $redirectUrl, ServerRequestInterface $request) : mixed
Parameters
- $loginType : string
- $redirectUrl : string
- $request : ServerRequestInterface
getLoginType()
public
getLoginType() : string
Return values
stringgetRedirectUrl()
public
getRedirectUrl() : string
Return values
stringgetRequest()
public
getRequest() : ServerRequestInterface
Return values
ServerRequestInterfacesetRedirectUrl()
public
setRedirectUrl(string $redirectUrl) : void
Parameters
- $redirectUrl : string