You are here

public function Processor::__construct in Advanced Queue 8

Constructs a new Processor object.

Parameters

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

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

\Drupal\advancedqueue\JobTypeManager $job_type_manager: The queue job type manager.

File

src/Processor.php, line 49

Class

Processor
Provides the default queue processor.

Namespace

Drupal\advancedqueue

Code

public function __construct(EventDispatcherInterface $event_dispatcher, TimeInterface $time, JobTypeManager $job_type_manager) {
  $this->eventDispatcher = $event_dispatcher;
  $this->time = $time;
  $this->jobTypeManager = $job_type_manager;
}