Skip to content
Snippets Groups Projects
Commit 155a6b10 authored by elise's avatar elise
Browse files

use twig to render view for list of users and user's profile

parent c7e271a3
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,11 @@ namespace App\Application\Actions\User;
use Psr\Http\Message\ResponseInterface as Response;
/**
* Class ListUsersAction
*
* @author : moreau96u
*/
class ListUsersAction extends UserAction
{
/**
......
......@@ -21,6 +21,6 @@ class ViewUserAction extends UserAction
}
$this->logger->info("User of id `${userId}` was viewed.");
return $this->respondWithData($user);
return $this->twig->render($this->response, "/user/user_profile.twig", ["user" => $user]);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment