public static function FileApi::create in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 8.2 api-sdk-php/src/File/FileApi.php \Smartling\File\FileApi::create()
- 8.2 vendor/smartling/api-sdk-php/src/File/FileApi.php \Smartling\File\FileApi::create()
- 8.3 vendor/smartling/api-sdk-php/src/File/FileApi.php \Smartling\File\FileApi::create()
Parameters
AuthApiInterface $authProvider:
string $projectId:
LoggerInterface $logger:
Return value
8 calls to FileApi::create()
- BaseApiAbstractTest::testClientIdAndClientVersionAndUserAgentExtensionsSpecified in vendor/
smartling/ api-sdk-php/ tests/ unit/ BaseApiAbstractTest.php - Test custom client id, version and extension in user agent.
- BaseApiAbstractTest::testCurrentClientIdAndVersionSpecifiedUserAgentExtensionNotSpecified in vendor/
smartling/ api-sdk-php/ tests/ unit/ BaseApiAbstractTest.php - Test custom client id and version in user agent.
- BaseApiAbstractTest::testNoUserAgentExtensions in vendor/
smartling/ api-sdk-php/ tests/ unit/ BaseApiAbstractTest.php - Test default user agent.
- FileApiFunctionalTest::setUp in vendor/
smartling/ api-sdk-php/ tests/ functional/ FileApiFunctionalTest.php - Test mixture.
- FileApiFunctionalTest::tearDownAfterClass in vendor/
smartling/ api-sdk-php/ tests/ functional/ FileApiFunctionalTest.php - Reset all files in Smartling after tests.
File
- vendor/
smartling/ api-sdk-php/ src/ File/ FileApi.php, line 32
Class
- FileApi
- Class FileApi
Namespace
Smartling\FileCode
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;
}