You are here

public function NotificationSubscriber::__construct in Bynder 4.0.x

NotifcationSubscriber constructor.

Parameters

\Drupal\bynder\BynderServiceInterface $bynder: The bynder service.

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

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

\Drupal\Core\Config\ConfigFactoryInterface $config_factory:

File

modules/bynder_sns/src/EventSubscriber/NotificationSubscriber.php, line 61

Class

NotificationSubscriber
Subscribes to Amazon SNS notifications to update bynder metadata.

Namespace

Drupal\bynder_sns\EventSubscriber

Code

public function __construct(BynderServiceInterface $bynder, EntityTypeManagerInterface $entity_type_manager, LoggerChannelFactoryInterface $logger_factory, ConfigFactoryInterface $config_factory) {
  $this->bynder = $bynder;
  $this->entityTypeManager = $entity_type_manager;
  $this->loggerFactory = $logger_factory;
  $this->configFactory = $config_factory;
}