<?php
/**
* Copyright (C) SUEZ Smart Solutions - All Rights Reserved
* On’Connect Gateway Management, 2018
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* For the full copyright and license information, please report to the LICENSE CONTRACT.
*/
namespace TSMS\TsmsBundle\EventListener;
use FOS\UserBundle\Model\UserManagerInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
/**
* Class NullInteractiveLoginListener.
*
* This class is used to overwrite the interactive login listener from FOS Bundle
*
* The action done by FOS Bundle is replicated in :
* `TSMS\TsmsBundle\Security\Handler:onAuthenticationSuccess`
*/
class NullInteractiveLoginListener implements EventSubscriberInterface
{
public function __construct(UserManagerInterface $userManager)
{}
public function onSecurityInteractiveLogin($event)
{
return;
}
/**
* @return array The event names to listen to
*/
public static function getSubscribedEvents()
{
return array(
'kernel.request' => 'onSecurityInteractiveLogin',
);
}
}