‪TYPO3CMS  ‪main
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)
 
 sendSubRequest (ServerRequestInterface $request, int $pageId, ServerRequestInterface $originalRequest)
 
 resolveUrl (ServerRequestInterface $request, array $urlParams)
 

Protected Attributes

int $statusCode
 
array $errorHandlerConfiguration
 
int $pageUid = 0
 
Application $application
 
ResponseFactoryInterface $responseFactory
 
SiteFinder $siteFinder
 
LinkService $link
 

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 38 of file PageContentErrorHandler.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ handlePageError()

TYPO3\CMS\Core\Error\PageErrorHandler\PageContentErrorHandler::handlePageError ( ServerRequestInterface  $request,
string  $message,
array  $reasons = [] 
)

◆ 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 134 of file PageContentErrorHandler.php.

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

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

◆ 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 118 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 subrequest callable.

Definition at line 101 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 43 of file PageContentErrorHandler.php.

◆ $errorHandlerConfiguration

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

Definition at line 41 of file PageContentErrorHandler.php.

◆ $link

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

Definition at line 46 of file PageContentErrorHandler.php.

◆ $pageUid

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

Definition at line 42 of file PageContentErrorHandler.php.

◆ $responseFactory

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

Definition at line 44 of file PageContentErrorHandler.php.

◆ $siteFinder

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

Definition at line 45 of file PageContentErrorHandler.php.

◆ $statusCode

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