public function SmartlingApiWrapper::__construct in TMGMT Translator Smartling 8.4
Same name and namespace in other branches
- 8.3 src/Smartling/SmartlingApiWrapper.php \Drupal\tmgmt_smartling\Smartling\SmartlingApiWrapper::__construct()
SmartlingApiWrapper constructor.
Parameters
\Drupal\tmgmt_smartling\Smartling\SmartlingApiFactory $api_factory:
\Psr\Log\LoggerInterface $logger:
File
- src/
Smartling/ SmartlingApiWrapper.php, line 54 - SmartlingApiWrapper.php.
Class
- SmartlingApiWrapper
- Class SmartlingApiWrapper @package Drupal\tmgmt_smartling\Smartling
Namespace
Drupal\tmgmt_smartling\SmartlingCode
public function __construct(SmartlingApiFactory $api_factory, LoggerInterface $logger) {
require_once __DIR__ . '/../../vendor/autoload.php';
$this->apiFactory = $api_factory;
$this->logger = $logger;
}