/**
  * Activate operator account.
  *
  * @param \MlankaTech\AppBundle\Entity\User $user
  * @return \MlankaTech\AppBundle\Entity\User
  */
 public function activate(\MlankaTech\AppBundle\Entity\User $user)
 {
     $this->logger->info('Service UserManager activate()');
     $user->setStatus($this->sm->active());
     $user->setActive(true);
     $user->setActivatedAt(new \DateTime());
     $user->setActivatedBy($this->getCurrentUser());
     $user->setLocked(false);
     $this->em->persist($user);
     $this->em->flush();
     return $user;
 }