/** * @DI\Observe("kernel.response", priority = 1) */ public function onKernelResponse(FilterResponseEvent $event) { if ($this->configurationHandler->isRedirectOption(PlatformConfiguration::$REDIRECT_OPTIONS['LAST'])) { $this->saveLastUri($event); } }