ModifyFileDumpEvent implements StoppableEventInterface

FinalYes

Event that is triggered when a file should be dumped to the browser, allowing to perform custom security/access checks when accessing a file through a direct link, and returning an alternative Response.

It is also possible to replace the file during this event, but not setting a response.

As soon as a custom Response is added, the propagation is stopped.

Table of Contents

Interfaces

StoppableEventInterface

Methods

__construct()  : mixed
getFile()  : ResourceInterface
getRequest()  : ServerRequestInterface
getResponse()  : ResponseInterface|null
isPropagationStopped()  : bool
setFile()  : void
setResponse()  : void

Methods

getRequest()

public getRequest() : ServerRequestInterface
Return values
ServerRequestInterface

getResponse()

public getResponse() : ResponseInterface|null
Return values
ResponseInterface|null

isPropagationStopped()

public isPropagationStopped() : bool
Return values
bool

setResponse()

public setResponse(ResponseInterface $response) : void
Parameters
$response : ResponseInterface

        
On this page

Search results