public function shouldRedirectToShop(Request
$request): bool
{ return !
$this->
isXmlHttpRequest($request) && !
$this->
isErrorControllerRequest($request) && !
$this->
isMaintenanceRequest($request);
} public function shouldBeCached(Request
$request): bool
{ return !
$this->
isMaintenanceModeActive() || !
$this->
isClientAllowed($request);
} /**
* isMaintenanceRequest returns true, when the maintenance mode is active and the client's IP address
* is not listed in the maintenance mode whitelist.
*/
public function isMaintenanceRequest(Request
$request): bool
{ return $this->
isMaintenanceModeActive() && !
$this->
isClientAllowed($request);
}