protected function handleRequest(?RouteCollectionInterface
$routes, Cache
$cacheConfig, bool
$returnResponse = false
) { $this->
forceSecureAccess();
if ($this->request instanceof IncomingRequest &&
strtolower($this->request->
getMethod()) === 'cli'
) { return $this->response->
setStatusCode(405
)->
setBody('Method Not Allowed'
);
} Events::
trigger('pre_system'
);
// Check for a cached page. Execution will stop
// if the page has been cached.
if (($response =
$this->
displayCache($cacheConfig)) instanceof ResponseInterface
) { return $response;
}