‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Resource\Event\ModifyFileDumpEvent Class Reference
Inheritance diagram for TYPO3\CMS\Core\Resource\Event\ModifyFileDumpEvent:

Public Member Functions

 __construct (private ResourceInterface $file, private ServerRequestInterface $request)
 getFile ()
 setFile (ResourceInterface $file)
 getRequest ()
 setResponse (ResponseInterface $response)
 getResponse ()
 isPropagationStopped ()

Private Attributes

ResponseInterface $response = null

Detailed Description

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.

Definition at line 34 of file ModifyFileDumpEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Resource\Event\ModifyFileDumpEvent::__construct ( private ResourceInterface  $file,
private ServerRequestInterface  $request 

Definition at line 38 of file ModifyFileDumpEvent.php.

Member Function Documentation

◆ getFile()

TYPO3\CMS\Core\Resource\Event\ModifyFileDumpEvent::getFile ( )

Definition at line 40 of file ModifyFileDumpEvent.php.

◆ getRequest()

TYPO3\CMS\Core\Resource\Event\ModifyFileDumpEvent::getRequest ( )

Definition at line 50 of file ModifyFileDumpEvent.php.

◆ getResponse()

TYPO3\CMS\Core\Resource\Event\ModifyFileDumpEvent::getResponse ( )

◆ isPropagationStopped()

TYPO3\CMS\Core\Resource\Event\ModifyFileDumpEvent::isPropagationStopped ( )

Definition at line 65 of file ModifyFileDumpEvent.php.

◆ setFile()

TYPO3\CMS\Core\Resource\Event\ModifyFileDumpEvent::setFile ( ResourceInterface  $file)

Definition at line 45 of file ModifyFileDumpEvent.php.

◆ setResponse()

TYPO3\CMS\Core\Resource\Event\ModifyFileDumpEvent::setResponse ( ResponseInterface  $response)

Member Data Documentation

◆ $response

ResponseInterface TYPO3\CMS\Core\Resource\Event\ModifyFileDumpEvent::$response = null