public function MoxtraService::__construct in Opigno Moxtra 3.x
Same name and namespace in other branches
- 8 src/MoxtraService.php \Drupal\opigno_moxtra\MoxtraService::__construct()
Creates a MoxtraService instance.
File
- src/
MoxtraService.php, line 52
Class
- MoxtraService
- Implements Moxtra REST API.
Namespace
Drupal\opigno_moxtraCode
public function __construct(TranslationInterface $translation, ConfigFactoryInterface $config_factory, LoggerChannelFactoryInterface $logger_factory, MessengerInterface $messenger, ClientInterface $http_client, MoxtraConnector $opigno_connector) {
$this
->setStringTranslation($translation);
$this->configFactory = $config_factory;
$this->logger = $logger_factory
->get('opigno_moxtra');
$this->messenger = $messenger;
$this->httpClient = $http_client;
$this->moxtraConnector = $opigno_connector;
}