You are here

public static function FileApi::create in TMGMT Translator Smartling 8.2

Same name in this branch
  1. 8.2 api-sdk-php/src/File/FileApi.php \Smartling\File\FileApi::create()
  2. 8.2 vendor/smartling/api-sdk-php/src/File/FileApi.php \Smartling\File\FileApi::create()
Same name and namespace in other branches
  1. 8.4 vendor/smartling/api-sdk-php/src/File/FileApi.php \Smartling\File\FileApi::create()
  2. 8.3 vendor/smartling/api-sdk-php/src/File/FileApi.php \Smartling\File\FileApi::create()

Parameters

AuthApiInterface $authProvider:

string $projectId:

LoggerInterface $logger:

Return value

FileApi

7 calls to FileApi::create()
FileApiFunctionalTest::setUp in api-sdk-php/tests/functional/FileApiFunctionalTest.php
Test mixture.
FileApiFunctionalTest::setUp in vendor/smartling/api-sdk-php/tests/functional/FileApiFunctionalTest.php
Test mixture.
FileApiFunctionalTest::tearDownAfterClass in api-sdk-php/tests/functional/FileApiFunctionalTest.php
Reset all files in Smartling after tests.
FileApiFunctionalTest::tearDownAfterClass in vendor/smartling/api-sdk-php/tests/functional/FileApiFunctionalTest.php
Reset all files in Smartling after tests.
resetFiles in api-sdk-php/examples/file-example.php
@noinspection MoreThanThreeArgumentsInspection

... See full list

File

vendor/smartling/api-sdk-php/src/File/FileApi.php, line 32

Class

FileApi
Class FileApi

Namespace

Smartling\File

Code

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