‪TYPO3CMS  11.5
TYPO3\CMS\Core\Controller\FileDumpController Class Reference

Public Member Functions

 __construct (EventDispatcherInterface $eventDispatcher, ResourceFactory $resourceFactory, ResponseFactoryInterface $responseFactory)
 
ResponseInterface dumpAction (ServerRequestInterface $request)
 

Protected Member Functions

 buildParametersFromRequest (ServerRequestInterface $request)
 
 isTokenValid (array $parameters, ServerRequestInterface $request)
 
File FileReference ProcessedFile null createFileObjectByParameters (array $parameters)
 
 isFileValid (FileInterface $file)
 
 applyContentSecurityPolicy (ResourceInterface $file, ResponseInterface $response)
 

Protected Attributes

ResourceFactory $resourceFactory
 
EventDispatcherInterface $eventDispatcher
 
ResponseFactoryInterface $responseFactory
 

Detailed Description

Class FileDumpController

Definition at line 42 of file FileDumpController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Controller\FileDumpController::__construct ( EventDispatcherInterface  $eventDispatcher,
ResourceFactory  $resourceFactory,
ResponseFactoryInterface  $responseFactory 
)

Member Function Documentation

◆ applyContentSecurityPolicy()

TYPO3\CMS\Core\Controller\FileDumpController::applyContentSecurityPolicy ( ResourceInterface  $file,
ResponseInterface  $response 
)
protected

Applies hard-coded content-security-policy (CSP) for file to be dumped.

Definition at line 265 of file FileDumpController.php.

References TYPO3\CMS\Core\Resource\ResourceInterface\getName(), and TYPO3\CMS\Core\Utility\PathUtility\pathinfo().

Referenced by TYPO3\CMS\Core\Controller\FileDumpController\dumpAction().

◆ buildParametersFromRequest()

TYPO3\CMS\Core\Controller\FileDumpController::buildParametersFromRequest ( ServerRequestInterface  $request)
protected

◆ createFileObjectByParameters()

File FileReference ProcessedFile null TYPO3\CMS\Core\Controller\FileDumpController::createFileObjectByParameters ( array  $parameters)
protected
Parameters
array$parameters
Returns
‪File|FileReference|ProcessedFile|null

Definition at line 219 of file FileDumpController.php.

Referenced by TYPO3\CMS\Core\Controller\FileDumpController\dumpAction().

◆ dumpAction()

◆ isFileValid()

◆ isTokenValid()

TYPO3\CMS\Core\Controller\FileDumpController::isTokenValid ( array  $parameters,
ServerRequestInterface  $request 
)
protected

Member Data Documentation

◆ $eventDispatcher

EventDispatcherInterface TYPO3\CMS\Core\Controller\FileDumpController::$eventDispatcher
protected

◆ $resourceFactory

ResourceFactory TYPO3\CMS\Core\Controller\FileDumpController::$resourceFactory
protected

◆ $responseFactory

ResponseFactoryInterface TYPO3\CMS\Core\Controller\FileDumpController::$responseFactory
protected