public function emailOnRegistration(FilterUserResponseEvent $event)
    {
        $template = '@XMSecurity/Mail/user_registered.html.twig';
        $mailParams = [
            'user' => $event->getUser(),
        ];

        $this->mailManager->getSender()
            ->setTemplate($template, $mailParams)
            ->send($this->adminEmail);
    }