public function AuditLogApi::__construct in TMGMT Translator Smartling 8.3
Same name and namespace in other branches
- 8.4 vendor/smartling/api-sdk-php/src/AuditLog/AuditLogApi.php \Smartling\AuditLog\AuditLogApi::__construct()
BaseApiAbstract constructor.
Parameters
string $projectId:
ClientInterface $client:
LoggerInterface $logger:
string|null $service_url:
Overrides BaseApiAbstract::__construct
File
- vendor/
smartling/ api-sdk-php/ src/ AuditLog/ AuditLogApi.php, line 22
Class
Namespace
Smartling\AuditLogCode
public function __construct($projectId, ClientInterface $client, LoggerInterface $logger = null, $service_url = null) {
parent::__construct($projectId, $client, $logger, $service_url);
// Do not include project_id into base url since
// audit log service has /accounts/{accountUid}/logs
// endpoint without project id.
$this
->setBaseUrl(rtrim($service_url, '/'));
}