{% import '@lib/di.twig' as di %} messenger->addStatus(__FUNCTION__); {% endif %} } /** * Kernel response event handler. */ public function onKernelResponse(ResponseEvent $event): void { // @todo Place your code here. {% if SUT_TEST %} $this->messenger->addStatus(__FUNCTION__); {% endif %} } /** * {@inheritdoc} */ public static function getSubscribedEvents(): array { return [ KernelEvents::REQUEST => ['onKernelRequest'], KernelEvents::RESPONSE => ['onKernelResponse'], ]; } }