BeforeActionAuthorizationDeniedEvent
FinalYes
Event that is triggered when an extbase action authorization check fails and before the authorization denied PropagateResponseException is thrown. Extension developers can use this event to prevent the default behavior and provide a custom response.
Security notice: When providing a custom response, it must be ensured, that no objects are persisted using the extbase persistence layer. Additionally it is recommended to only use a custom response for non-cached actions, because otherwise the response result will get cached.
Table of Contents
Methods
- __construct() : mixed
- getActionMethodName() : string
- getAuthorize() : Authorize
- getControllerClassName() : string
- getFailureReason() : AuthorizationFailureReason
- getRequest() : ServerRequestInterface
- getResponse() : ResponseInterface|null
- setResponse() : void
Methods
__construct()
public
__construct(ServerRequestInterface $request, string $controllerClassName, string $actionMethodName, Authorize $authorize, AuthorizationFailureReason $failureReason) : mixed
Parameters
- $request : ServerRequestInterface
- $controllerClassName : string
- $actionMethodName : string
- $authorize : Authorize
- $failureReason : AuthorizationFailureReason
getActionMethodName()
public
getActionMethodName() : string
Return values
stringgetAuthorize()
public
getAuthorize() : Authorize
Return values
AuthorizegetControllerClassName()
public
getControllerClassName() : string
Return values
stringgetFailureReason()
public
getFailureReason() : AuthorizationFailureReason
Return values
AuthorizationFailureReasongetRequest()
public
getRequest() : ServerRequestInterface
Return values
ServerRequestInterfacegetResponse()
public
getResponse() : ResponseInterface|null
Return values
ResponseInterface|nullsetResponse()
public
setResponse(ResponseInterface $response) : void
Parameters
- $response : ResponseInterface