You are here

public function ScheduledTransitionsJobs::__construct in Scheduled Transitions 2.x

Same name and namespace in other branches
  1. 8 src/ScheduledTransitionsJobs.php \Drupal\scheduled_transitions\ScheduledTransitionsJobs::__construct()

Constructs a new ScheduledTransitionsRunner.

Parameters

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

\Drupal\Component\Datetime\TimeInterface $time: System time.

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

\Psr\Log\LoggerInterface $logger: A logger instance.

File

src/ScheduledTransitionsJobs.php, line 63

Class

ScheduledTransitionsJobs
Job runner for Scheduled Transitions.

Namespace

Drupal\scheduled_transitions

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, TimeInterface $time, QueueFactory $queueFactory, LoggerInterface $logger) {
  $this->entityTypeManager = $entityTypeManager;
  $this->time = $time;
  $this->queue = $queueFactory
    ->get('scheduled_transition_job');
  $this->logger = $logger;
}