src/Kunstmaan/AdminBundle/EventListener/LoginListener.php
public function onSecurityInteractiveLogin(InteractiveLoginEvent $event)
    {
        /* @var BaseUser $user */
        $user = $event->getAuthenticationToken()->getUser();

        if ($user instanceof UserInterface) {
            $this->logger->info($user . ' successfully logged in to the cms');
            $this->versionChecker->periodicallyCheck();
        }
    }
public function onSecurityInteractiveLogin(InteractiveLoginEvent $event)
    {
        /* @var BaseUser $user */
        $user = $event->getAuthenticationToken()->getUser();

        if ($user instanceof UserInterface) {
            $this->logger->info($user . ' successfully logged in to the cms');
            $this->versionChecker->periodicallyCheck();
        }
    }
public function onSecurityInteractiveLogin ( InteractiveLoginEvent $ event ) { /* @var BaseUser $user */ $ user = $ event -> getAuthenticationToken ( ) -> getUser ( ) ; if ( $ user instanceof UserInterface ) { $ this -> logger -> info ( $ user . ' successfully logged in to the cms' ) ; $ this -> versionChecker -> periodicallyCheck ( ) ; } }
Handle login event.

@param InteractiveLoginEvent $event
Handle login event .