/**
  * @Annotations\Put("/users/{id}/confirmation-token/{confirmationToken}")
  */
 public function putUserActivationCodeAction(User $user, $confirmationToken)
 {
     if ($user->getConfirmationToken() !== $confirmationToken) {
         throw $this->createNotFoundException('No confirmation token invalid');
     }
     $user->setEnabled(true);
     $user->setLocked(false);
     $this->get('fos_user.user_manager')->updateUser($user);
     return $this->handleView(new View(array(), Response::HTTP_CREATED));
 }