<?php
namespace App\EventSubscriber;
use Doctrine\ORM\EntityManagerInterface;
use Psr\Log\LoggerInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
use Symfony\Component\HttpKernel\Event\RequestEvent;
use Symfony\Component\HttpKernel\Event\ResponseEvent;
class LoginSubscriber implements EventSubscriberInterface
{
private $em;
private $log;
public function __construct(EntityManagerInterface $em, LoggerInterface $log)
{
$this->em = $em;
$this->log = $log;
}
public function onSecurityInteractiveLogin(InteractiveLoginEvent $event)
{
}
public static function getSubscribedEvents()
{
return [
'security.interactive_login' => 'onSecurityInteractiveLogin',
];
}
}