You are here

public function RadioactivityProcessor::__construct in Radioactivity 8.3

Same name and namespace in other branches
  1. 4.0.x src/RadioactivityProcessor.php \Drupal\radioactivity\RadioactivityProcessor::__construct()

Constructs a Radioactivity processor.

Parameters

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

\Drupal\Core\State\StateInterface $state: The key-value storage.

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

\Drupal\radioactivity\StorageFactory $storage: The storage factory service.

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

\Drupal\Core\Queue\QueueFactory $queue: The queue factory service.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher service.

File

src/RadioactivityProcessor.php, line 89

Class

RadioactivityProcessor
Class RadioactivityProcessor.

Namespace

Drupal\radioactivity

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, StateInterface $state, LoggerChannelFactoryInterface $logger_factory, StorageFactory $storage, TimeInterface $time, QueueFactory $queue, EventDispatcherInterface $event_dispatcher) {
  $this->entityTypeManager = $entity_type_manager;
  $this->state = $state;
  $this->log = $logger_factory
    ->get(self::LOGGER_CHANNEL);
  $this->storage = $storage
    ->getConfiguredStorage();
  $this->requestTime = $time
    ->getRequestTime();
  $this->queue = $queue;
  $this->eventDispatcher = $event_dispatcher;
}