src/Sasedev/Commons/SharedBundle/Listener/LoginSuccess.php
public function onLogin(InteractiveLoginEvent $event)
	{

		$user = $event->getAuthenticationToken()->getUser();
		if ($user) {
			$user->setLastLogin(new \DateTime());
			$user->setLogins($user->getLogins() + 1);
			$this->em->persist($user);
			$this->em->flush();

			/*$request = $event->getRequest();
			$session = $request->getSession();

			if (null != $user->getPreferedLocale()) {
				$locale = $user->getPreferedLocale();
				$session->set('_locale', $locale->getPrefix());

			}*/
		}

	}
public function onLogin(InteractiveLoginEvent $event)
	{

		$user = $event->getAuthenticationToken()->getUser();
		if ($user) {
			$user->setLastLogin(new \DateTime());
			$user->setLogins($user->getLogins() + 1);
			$this->em->persist($user);
			$this->em->flush();

			/*$request = $event->getRequest();
			$session = $request->getSession();

			if (null != $user->getPreferedLocale()) {
				$locale = $user->getPreferedLocale();
				$session->set('_locale', $locale->getPrefix());

			}*/
		}

	}
Fired on login

@param InteractiveLoginEvent $event