Skip to content

Instantly share code, notes, and snippets.

@ollo-ride-nico
Created January 18, 2018 22:26
Show Gist options
  • Save ollo-ride-nico/8c9fcfc6e9a90e68c22c0a9120f20056 to your computer and use it in GitHub Desktop.
Save ollo-ride-nico/8c9fcfc6e9a90e68c22c0a9120f20056 to your computer and use it in GitHub Desktop.
//Je récupère le token de l utilisateur qui s' inscrit
$str = $this->get('security.token_storage')->getToken();
//Je génère une url en passant le token (donc la ca ne marche pas)...
//Mon url donné est : "/public/index.php/activate" au lieu de "/public/index.php/activate?token=..."
$token = $this->generateUrl('activate', array('token' => $str));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment