Fetch the current user's details

You can use the UserManager to fetch information about the currently authenticated user.

<?php

/** @var \Jadu\Quantum\ServiceApiClient\Manager\UserManager $userManager */
$userManager = $container->get('quantum_service_api_client.manager.user');
$currentUser = $userManager->getCurrentUser();

This will always return a User object.

results matching ""

    No results matching ""