PHP Class Sulu\Bundle\SecurityBundle\EventListener\LastLoginListener

Inheritance: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Datei anzeigen Open project: sulu/sulu

Protected Properties

Property Type Description
$entityManager Doctrine\ORM\EntityManagerInterface

Public Methods

Method Description
__construct ( Doctrine\ORM\EntityManagerInterface $entityManager ) LastLoginListener constructor.
getSubscribedEvents ( ) : array Subscribe the login events.
onSecurityInteractiveLogin ( Symfony\Component\Security\Http\Event\InteractiveLoginEvent $event )

Protected Methods

Method Description
updateLastLogin ( Symfony\Component\Security\Core\User\UserInterface $user ) Update the users last login.

Method Details

__construct() public method

LastLoginListener constructor.
public __construct ( Doctrine\ORM\EntityManagerInterface $entityManager )
$entityManager Doctrine\ORM\EntityManagerInterface

getSubscribedEvents() public static method

Subscribe the login events.
public static getSubscribedEvents ( ) : array
return array

onSecurityInteractiveLogin() public method

public onSecurityInteractiveLogin ( Symfony\Component\Security\Http\Event\InteractiveLoginEvent $event )
$event Symfony\Component\Security\Http\Event\InteractiveLoginEvent

updateLastLogin() protected method

Update the users last login.
protected updateLastLogin ( Symfony\Component\Security\Core\User\UserInterface $user )
$user Symfony\Component\Security\Core\User\UserInterface

Property Details

$entityManager protected_oe property

protected EntityManagerInterface,Doctrine\ORM $entityManager
return Doctrine\ORM\EntityManagerInterface