Platformsh\Cli\Api::getMyAccount PHP Method

getMyAccount() public method

Get the current user's account info.
public getMyAccount ( boolean $reset = false ) : array
$reset boolean
return array An array containing at least 'uuid', 'mail', and 'display_name'.
    public function getMyAccount($reset = false)
    {
        $cacheKey = sprintf('%s:my-account', self::$sessionId);
        if ($reset || !($info = self::$cache->fetch($cacheKey))) {
            $info = $this->getClient()->getAccountInfo($reset);
            self::$cache->save($cacheKey, $info, $this->config->get('api.users_ttl'));
        }
        return $info;
    }