コード例 #1
0
 public function proceed($userId)
 {
     if (!($user = $this->userRepository->find($userId))) {
         throw new Exception\UserNotFoundException('User cannot be found');
     }
     /* \Auth\Entity\Info */
     $user->getInfo()->setEmailVerified(true);
     $user->setEmail($user->getInfo()->getEmail());
     // Set verified email as primary email.
     $this->userRepository->store($user);
     $this->authenticationService->getStorage()->write($user->getId());
 }