PHP Класс Sulu\Bundle\SecurityBundle\EventListener\LastLoginListener

Наследование: implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$entityManager Doctrine\ORM\EntityManagerInterface

Открытые методы

Метод Описание
__construct ( Doctrine\ORM\EntityManagerInterface $entityManager ) LastLoginListener constructor.
getSubscribedEvents ( ) : array Subscribe the login events.
onSecurityInteractiveLogin ( Symfony\Component\Security\Http\Event\InteractiveLoginEvent $event )

Защищенные методы

Метод Описание
updateLastLogin ( Symfony\Component\Security\Core\User\UserInterface $user ) Update the users last login.

Описание методов

__construct() публичный Метод

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

getSubscribedEvents() публичный статический Метод

Subscribe the login events.
public static getSubscribedEvents ( ) : array
Результат array

onSecurityInteractiveLogin() публичный Метод

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

updateLastLogin() защищенный Метод

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

Описание свойств

$entityManager защищенное свойство

protected EntityManagerInterface,Doctrine\ORM $entityManager
Результат Doctrine\ORM\EntityManagerInterface