Listener/AuthenticationLoggerListener.php
protected function addLogSuccess(UserInterface $user)
    {
        $this->userManager->updateUser($user);

        $authLog = $this->createAuthLog();
        $authLog->setSuccess(true);
        $authLog->setUser($user);
        $authLog->setUsername($user->getUsername());

        $this->em->persist($authLog);
        $this->em->flush();
    }
protected function addLogSuccess(UserInterface $user)
    {
        $this->userManager->updateUser($user);

        $authLog = $this->createAuthLog();
        $authLog->setSuccess(true);
        $authLog->setUser($user);
        $authLog->setUsername($user->getUsername());

        $this->em->persist($authLog);
        $this->em->flush();
    }
protected function addLogSuccess ( UserInterface $ user ) { $ this -> userManager -> updateUser ( $ user ) ; $ authLog = $ this -> createAuthLog ( ) ; $ authLog -> setSuccess ( true ) ; $ authLog -> setUser ( $ user ) ; $ authLog -> setUsername ( $ user -> getUsername ( ) ) ; $ this -> em -> persist ( $ authLog ) ; $ this -> em -> flush ( ) ; }
Add successful log.

@param UserInterface $user
Add successful log .