BeforeActionAuthorizationDeniedEvent

final class \TYPO3\CMS\Extbase\Event\Mvc\BeforeActionAuthorizationDeniedEvent

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

getActionMethodName()

public getActionMethodName() : string

Return values

string

getControllerClassName()

public getControllerClassName() : string

Return values

string

getRequest()

public getRequest() : ServerRequestInterface

Return values

ServerRequestInterface

getResponse()

public getResponse() : ResponseInterface|null

Return values

ResponseInterface|null

setResponse()

public setResponse(ResponseInterface $response) : void

Parameters

$response : ResponseInterface
On this page