Someone
public text v1 · immutable$tok = new UserToken($user->getEmail());
$this->get('security.context')->setToken($tok);
//throw new \Exception();
return new RedirectResponse($this->generateUrl('welcome'));$tok = new UserToken($user->getEmail());
$this->get('security.context')->setToken($tok);
//throw new \Exception();
return new RedirectResponse($this->generateUrl('welcome'));