public function onKernelTerminate(PostResponseEvent $event) { $this->pageStack->reset(); $this->jarves->terminate(); }