$client =
$this->httpClient->
withOptions([ 'base_uri' => 'https://'.
$endpoint.'/v2/projects/'.
$this->
getUser($dsn).'/',
'headers' =>
[ 'Authorization' => 'token '.
$this->
getPassword($dsn),
'User-Agent' =>
$dsn->
getRequiredOption('userAgent'
),
],
]);
$readConfig =
$this->
readConfigFromDsn($dsn);
$writeConfig =
$this->
writeConfigFromDsn($dsn);
return new PhraseProvider($client,
$this->logger,
$this->loader,
$this->xliffFileDumper,
$this->cache,
$this->defaultLocale,
$endpoint,
$readConfig,
$writeConfig,
$this->
isFallbackLocaleEnabled($dsn));
} protected function getSupportedSchemes(): array
{ return ['phrase'
];
} private function isFallbackLocaleEnabled(Dsn
$dsn): bool
{