Skip to content
Snippets Groups Projects
Commit f5db752c authored by itanael's avatar itanael
Browse files

use twig render for response

parent edfc625e
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,10 @@ class CreateUserAction extends UserAction
$this->logger->info("User has been created.");
return $this->respondWithData($user);
return $this->twig->render(
$this->response, "/user/user_profile.twig",
["user" => $user, "id" => $user->getId()]
);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment