You are here

public function OrderSubscriber::__construct in Commerce Recurring Framework 8

Constructs a new OrderSubscriber object.

Parameters

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

\Drupal\commerce_recurring\RecurringOrderManagerInterface $recurring_order_manager: The recurring order manager.

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

File

src/EventSubscriber/OrderSubscriber.php, line 44

Class

OrderSubscriber

Namespace

Drupal\commerce_recurring\EventSubscriber

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, RecurringOrderManagerInterface $recurring_order_manager, TimeInterface $time) {
  $this->entityTypeManager = $entity_type_manager;
  $this->recurringOrderManager = $recurring_order_manager;
  $this->time = $time;
}