You are here

public static function TranslationRequestsApiV3::create in TMGMT Translator Smartling 8.4

Parameters

AuthApiInterface $authProvider:

string $projectId:

LoggerInterface $logger:

Return value

TranslationRequestsApi

Overrides TranslationRequestsApi::create

1 call to TranslationRequestsApiV3::create()
SmartlingApiFactory::create in src/Smartling/SmartlingApiFactory.php
Returns API object as a service.

File

src/Smartling/Submission/TranslationRequestsApiV3.php, line 17

Class

TranslationRequestsApiV3
Class TranslationRequestsApiV3 @package Smartling\TranslationRequests

Namespace

Drupal\tmgmt_smartling\Smartling\Submission

Code

public static function create(AuthApiInterface $authProvider, $projectId, $logger = null) {
  $client = static::initializeHttpClient(static::ENDPOINT_URL);
  $instance = new self($projectId, $client, $logger, static::ENDPOINT_URL);
  $instance
    ->setAuth($authProvider);
  return $instance;
}