/** * Forwards the request to the Frontend class if there is a page object. * * @param PostResponseEvent $event The event object */ public function onKernelTerminate(PostResponseEvent $event) { if (!$this->framework->isInitialized()) { return; } Frontend::indexPageIfApplicable($event->getResponse()); }