Listener/AuthenticationLoggerListener.php
public function logSuccess()
    {
        /** @var XM\SecurityBundle\Entity\User $user */
        $user = $this->tokenStorage->getToken()->getUser();

        if ($user instanceof \XM\SecurityBundle\Entity\User) {
            $user->incrementLoginCount();

            $this->userManager->updateUser($user);

            $this->addLogSuccess($user);
        }
    }
public function logSuccess()
    {
        /** @var XM\SecurityBundle\Entity\User $user */
        $user = $this->tokenStorage->getToken()->getUser();

        if ($user instanceof \XM\SecurityBundle\Entity\User) {
            $user->incrementLoginCount();

            $this->userManager->updateUser($user);

            $this->addLogSuccess($user);
        }
    }
public function logSuccess ( ) { /** @var XM\SecurityBundle\Entity\User $user */ $ user = $ this -> tokenStorage -> getToken ( ) -> getUser ( ) ; if ( $ user instanceof \ XM \ SecurityBundle \ Entity \ User ) { $ user -> incrementLoginCount ( ) ; $ this -> userManager -> updateUser ( $ user ) ; $ this -> addLogSuccess ( $ user ) ; } }
Logs the successful login.
Event will be passed but we don't use it or care what it is.
Logs the successful login . Event will be passed but we don t use it or care what it is .