You are here

public function InitSubscriber::__construct in Acquia Connector 8

Same name and namespace in other branches
  1. 8.2 src/EventSubscriber/InitSubscriber.php \Drupal\acquia_connector\EventSubscriber\InitSubscriber::__construct()
  2. 3.x src/EventSubscriber/InitSubscriber.php \Drupal\acquia_connector\EventSubscriber\InitSubscriber::__construct()

InitSubscriber constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory.

\Drupal\Core\State\StateInterface $state: State.

\Drupal\Core\Cache\CacheBackendInterface $cache: Cache backend.

\Drupal\acquia_connector\Controller\SpiController $spi_controller: SPI backend.

File

src/EventSubscriber/InitSubscriber.php, line 66

Class

InitSubscriber
Class InitSubscriber.

Namespace

Drupal\acquia_connector\EventSubscriber

Code

public function __construct(ConfigFactoryInterface $config_factory, StateInterface $state, CacheBackendInterface $cache, SpiController $spi_controller) {
  $this->configFactory = $config_factory;
  $this->state = $state;
  $this->cache = $cache;
  $this->spiController = $spi_controller;
}