You are here

public function OrderEventSubscriber::__construct in Commerce Stock 8

Constructs a new OrderReceiptSubscriber object.

Parameters

\Drupal\commerce_stock\StockServiceManagerInterface $stock_service_manager: The stock service manager.

\Drupal\commerce_stock\StockEventTypeManagerInterface $event_type_manager: The stock event type manager.

\Drupal\commerce_stock\StockEventsManagerInterface $events_manager: The stock events manager.

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

File

src/EventSubscriber/OrderEventSubscriber.php, line 73

Class

OrderEventSubscriber
Performs stock transactions on order and order item events.

Namespace

Drupal\commerce_stock\EventSubscriber

Code

public function __construct(StockServiceManagerInterface $stock_service_manager, StockEventTypeManagerInterface $event_type_manager, StockEventsManagerInterface $events_manager, EntityTypeManagerInterface $entity_type_manager) {
  $this->stockServiceManager = $stock_service_manager;
  $this->eventTypeManager = $event_type_manager;
  $this->eventsManager = $events_manager;
  $this->entityTypeManager = $entity_type_manager;
}