You are here

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

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

Constructs a new ScheduledTransitionsRunner.

Parameters

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

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The configuration factory.

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

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

\Drupal\content_moderation\ModerationInformationInterface $moderationInformation: General service for moderation-related questions about Entity API.

\Drupal\Core\Utility\Token $token: The token replacement system.

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

\Drupal\scheduled_transitions\ScheduledTransitionsUtilityInterface $scheduledTransitionsUtility: Utilities for Scheduled Transitions module.

File

src/ScheduledTransitionsRunner.php, line 111

Class

ScheduledTransitionsRunner
Executes transitions.

Namespace

Drupal\scheduled_transitions

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, ConfigFactoryInterface $configFactory, TimeInterface $time, LoggerInterface $logger, ModerationInformationInterface $moderationInformation, Token $token, EventDispatcherInterface $eventDispatcher, ScheduledTransitionsUtilityInterface $scheduledTransitionsUtility) {
  $this->entityTypeManager = $entityTypeManager;
  $this->configFactory = $configFactory;
  $this->time = $time;
  $this->logger = $logger;
  $this->moderationInformation = $moderationInformation;
  $this->token = $token;
  $this->eventDispatcher = $eventDispatcher;
  $this->scheduledTransitionsUtility = $scheduledTransitionsUtility;
}