public function blame(EventInterface $event) { $token = $this->securityContext->getToken(); if (null === $token) { throw new \RuntimeException('You must configure a firewall for this route'); } if ($this->securityContext->isGranted('IS_AUTHENTICATED_REMEMBERED')) { $event->setOrganizer($token->getUser()); } }