public function onFinishRequestPre(FinishRequestEvent $event) { if ($event->getRequestType() !== HttpKernelInterface::MASTER_REQUEST) { return; } $key = $this->pageStack->isAdmin() ? 'backend' : 'frontend'; $this->log($key, microtime(true) - $this->start); }