‪TYPO3CMS  11.5
TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler Class Reference
Inheritance diagram for TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler:
TYPO3\CMS\Core\Error\PageErrorHandler\PageErrorHandlerInterface

Public Member Functions

 __construct (int $statusCode, array $configuration)
 
 handlePageError (ServerRequestInterface $request, string $message, array $reasons=[])
 

Protected Member Functions

 stashEnvironment (callable $fetcher)
 
 cachePageRequest (int $pageId, callable $fetcher, string $cacheIdentifier)
 
 createGenericErrorResponse (string $message='')
 
 createCachedPageRequestResponse (array $responseData)
 
 sendRawRequest (string $resolvedUrl)
 
 sendSubRequest (ServerRequestInterface $request, int $pageId, ServerRequestInterface $originalRequest)
 
array int[] getSubRequestOptions ()
 
 resolveUrl (ServerRequestInterface $request, array $urlParams)
 

Protected Attributes

int $statusCode
 
array $errorHandlerConfiguration
 
int $pageUid = 0
 
Application $application
 
RequestFactory $requestFactory
 
ResponseFactoryInterface $responseFactory
 
SiteFinder $siteFinder
 
LinkService $link
 
FrontendInterface $cache
 
bool $useSubrequest
 

Detailed Description

Renders the content of a page to be displayed (also in relation to language etc) This is typically configured via the "Sites configuration" module in the backend.

Definition at line 50 of file PageContentErrorHandler.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::__construct ( int  $statusCode,
array  $configuration 
)

PageContentErrorHandler constructor.

Parameters
int$statusCode
array$configuration
Exceptions

Definition at line 78 of file PageContentErrorHandler.php.

References TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler\$statusCode.

Member Function Documentation

◆ cachePageRequest()

◆ createCachedPageRequestResponse()

TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::createCachedPageRequestResponse ( array  $responseData)
protected

◆ createGenericErrorResponse()

TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::createGenericErrorResponse ( string  $message = '')
protected

◆ getSubRequestOptions()

array int [] TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::getSubRequestOptions ( )
protected

Returns request options for the subrequest

Returns
‪array|int[]

Definition at line 284 of file PageContentErrorHandler.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler\sendRawRequest().

◆ handlePageError()

◆ resolveUrl()

TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::resolveUrl ( ServerRequestInterface  $request,
array  $urlParams 
)
protected

Resolve the URL (currently only page and external URL are supported)

Definition at line 298 of file PageContentErrorHandler.php.

References TYPO3\CMS\Core\Site\Entity\SiteLanguage\isEnabled().

Referenced by TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler\handlePageError().

◆ sendRawRequest()

TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::sendRawRequest ( string  $resolvedUrl)
protected

◆ sendSubRequest()

TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::sendSubRequest ( ServerRequestInterface  $request,
int  $pageId,
ServerRequestInterface  $originalRequest 
)
protected

Sends an in-process subrequest.

The $pageId is used to ensure the correct site is accessed.

Definition at line 266 of file PageContentErrorHandler.php.

Referenced by TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler\handlePageError().

◆ stashEnvironment()

TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::stashEnvironment ( callable  $fetcher)
protected

Stash and restore portions of the global environment around a subreqest callable.

Definition at line 149 of file PageContentErrorHandler.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler\handlePageError().

Member Data Documentation

◆ $application

Application TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::$application
protected

Definition at line 58 of file PageContentErrorHandler.php.

◆ $cache

FrontendInterface TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::$cache
protected

Definition at line 68 of file PageContentErrorHandler.php.

◆ $errorHandlerConfiguration

array TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::$errorHandlerConfiguration
protected

Definition at line 54 of file PageContentErrorHandler.php.

◆ $link

LinkService TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::$link
protected

Definition at line 66 of file PageContentErrorHandler.php.

◆ $pageUid

int TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::$pageUid = 0
protected

Definition at line 56 of file PageContentErrorHandler.php.

◆ $requestFactory

RequestFactory TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::$requestFactory
protected

Definition at line 60 of file PageContentErrorHandler.php.

◆ $responseFactory

ResponseFactoryInterface TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::$responseFactory
protected

Definition at line 62 of file PageContentErrorHandler.php.

◆ $siteFinder

SiteFinder TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::$siteFinder
protected

Definition at line 64 of file PageContentErrorHandler.php.

◆ $statusCode

int TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::$statusCode
protected

◆ $useSubrequest

bool TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::$useSubrequest
protected

Definition at line 70 of file PageContentErrorHandler.php.