public function onKernelResponse(FilterResponseEvent $event) { $request = $event->getRequest(); $response = $event->getResponse(); $responseCode = $response->getStatusCode(); $annotations = $this->getLoggableAnnotations($request); if (is_array($annotations)) { foreach ($annotations as $annotation) { $actionLogId = $annotation->getActionLogId(); $this->logger->updateResponseCode($actionLogId, $responseCode); } } }
public function onSecurityInteractiveLogin(InteractiveLoginEvent $event) { $controllerAction = array($this, 'onSecurityInteractiveLogin'); $person = $event->getAuthenticationToken()->getUser(); $this->logger->registerLogin($event->getRequest(), $person, $controllerAction); }