src/Sulu/Bundle/SecurityBundle/EventListener/LastLoginListener.php
protected function updateLastLogin($user)
    {
        if ($user instanceof BaseUser) {
            $user->setLastLogin(new \DateTime());
            $this->entityManager->flush();
        }
    }
protected function updateLastLogin($user)
    {
        if ($user instanceof BaseUser) {
            $user->setLastLogin(new \DateTime());
            $this->entityManager->flush();
        }
    }
protected function updateLastLogin ( $ user ) { if ( $ user instanceof BaseUser ) { $ user -> setLastLogin ( new \ DateTime ( ) ) ; $ this -> entityManager -> flush ( ) ; } }
Update the users last login.

@param UserInterface $user
Update the users last login .