‪TYPO3CMS  ‪main
TYPO3\CMS\Frontend\Middleware\MaintenanceMode Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Middleware\MaintenanceMode:

Public Member Functions

 process (ServerRequestInterface $request, RequestHandlerInterface $handler)

Detailed Description

Checks whether the whole Frontend should be put into "Page unavailable mode" unless the devIPMask matches the current visitor's IP.

The global setting $GLOBALS['TYPO3_CONF_VARS']['FE']['pageUnavailable_force'] is used for turning on the maintenance mode.

Definition at line 34 of file MaintenanceMode.php.

Member Function Documentation

◆ process()

TYPO3\CMS\Frontend\Middleware\MaintenanceMode::process ( ServerRequestInterface  $request,
RequestHandlerInterface  $handler 

Calls the "unavailableAction" of the error controller if the system is in maintenance mode. This only applies if the REMOTE_ADDR does not match the devIpMask

Definition at line 40 of file MaintenanceMode.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\cmpIP().