You are here

public function MoxtraService::__construct in Opigno Moxtra 8

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

Code

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;
}