public static function getResponseFromCache() { @trigger_error('Using Frontend::getResponseFromCache() has been deprecated and will no longer work in Contao 5.0. Use proper response caching headers instead.', E_USER_DEPRECATED); return null; }
/** * Forwards the request to the Frontend class and sets the response if any. * * @param GetResponseEvent $event The event object */ public function onKernelRequest(GetResponseEvent $event) { if (!$this->isFrontendMasterRequest($event)) { return; } $this->framework->initialize(); if (null !== ($response = Frontend::getResponseFromCache())) { $event->setResponse($response); } }