You are here

public function AuditLogApi::__construct in TMGMT Translator Smartling 8.3

Same name and namespace in other branches
  1. 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

AuditLogApi

Namespace

Smartling\AuditLog

Code

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, '/'));
}