You are here

public function BynderApi::__construct in Bynder 4.0.x

Same name and namespace in other branches
  1. 8.3 src/BynderApi.php \Drupal\bynder\BynderApi::__construct()
  2. 8 src/BynderApi.php \Drupal\bynder\BynderApi::__construct()
  3. 8.2 src/BynderApi.php \Drupal\bynder\BynderApi::__construct()

BynderApi constructor.

Parameters

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

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: Logger factory.

\Symfony\Component\HttpFoundation\Session\SessionInterface $session: The session service.

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

\Drupal\Core\Cache\CacheBackendInterface $cache: The cache service.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

File

src/BynderApi.php, line 152

Class

BynderApi
Bynder API service.

Namespace

Drupal\bynder

Code

public function __construct(ConfigFactoryInterface $config_factory, LoggerChannelFactoryInterface $logger_factory, SessionInterface $session, StateInterface $state, CacheBackendInterface $cache, TimeInterface $time) {
  $this->configFactory = $config_factory;
  $this->loggerFactory = $logger_factory;
  $this->session = $session;
  $this->state = $state;
  $this->cache = $cache;
  $this->time = $time;
}