You are here

public function MoxtraConnector::__construct in Opigno Moxtra 3.x

Same name and namespace in other branches
  1. 8 src/MoxtraConnector.php \Drupal\opigno_moxtra\MoxtraConnector::__construct()

Constructs a MoxtraConnector object.

File

src/MoxtraConnector.php, line 90

Class

MoxtraConnector

Namespace

Drupal\opigno_moxtra

Code

public function __construct(ConfigFactoryInterface $config_factory, LoggerChannelFactoryInterface $logger_factory, CacheBackendInterface $cache, TimeInterface $time, MessengerInterface $messenger, ClientInterface $http_client, KeyValueFactory $key_value) {
  $this->configFactory = $config_factory;
  $this->logger = $logger_factory
    ->get('opigno_moxtra');
  $this->cache = $cache;
  $this->time = $time;
  $this->messenger = $messenger;
  $this->httpClient = $http_client;
  $this
    ->init();
  $this->keyValueStorage = $key_value
    ->get('opigno_moxtra');
}