code: public function confirmAction($token)
      {
          $user = $this->get('fos_user.user_manager')->findUserByConfirmationToken($token);
          if (null === $user) {
              throw new NotFoundHttpException(sprintf('The user with confirmation token "%s" does not exist', $token));
          }
          $user->setConfirmationToken(null);
          $user->setEnabled(true);
          $user->setLastLogin(new \DateTime());
          $this->get('fos_user.user_manager')->updateUser($user);
  
          $response = $this->redirect($this->generateUrl('miky_app_customer_registration_confirmed'));
  
          $this->authenticateUser($user, $response);
          return $response;
      }
docs: Receive the confirmation token from user email provider, login the user.
  
  @param string $token
  
  @return RedirectResponse
  
  @throws NotFoundHttpException