You are here

public function UsageEventSubscriber::__construct in Bynder 4.0.x

Same name and namespace in other branches
  1. 8.3 modules/bynder_usage/src/EventSubscriber/UsageEventSubscriber.php \Drupal\bynder_usage\EventSubscriber\UsageEventSubscriber::__construct()
  2. 8.2 modules/bynder_usage/src/EventSubscriber/UsageEventSubscriber.php \Drupal\bynder_usage\EventSubscriber\UsageEventSubscriber::__construct()

UsageEventSubscriber constructor.

Parameters

\Drupal\bynder\BynderApiInterface $bynder_api_service: Bynder api service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

File

modules/bynder_usage/src/EventSubscriber/UsageEventSubscriber.php, line 57

Class

UsageEventSubscriber
Listens for the usage events from Entity Usage module.

Namespace

Drupal\bynder_usage\EventSubscriber

Code

public function __construct(BynderApiInterface $bynder_api_service, EntityTypeManagerInterface $entity_type_manager, RequestStack $request_stack) {
  $this->bynderApi = $bynder_api_service;
  $this->entityTypeManager = $entity_type_manager;
  $this->requestStack = $request_stack;
}