*/ final class GetUserProfileController extends AbstractController { #[Route( path: '/api/me', name: 'identity_and_access_me', methods: ['GET'] )] public function __invoke(): JsonResponse { $security = $this->getSecurityUser(); $data = $this->handleQuery(new GetUserProfile($security->userId)); return JsonResponse::fromJsonString($this->serialize($data)); } }