/**
  * @param UserInterface $user
  */
 protected function updateUserLastLogin(UserInterface $user)
 {
     $user->setLastLogin(new \DateTime());
     $this->userManager->persist($user);
     $this->userManager->flush($user);
 }