You are here

public function ShipmentSubscriber::__construct in Commerce Shipping 8.2

Constructs a new ShipmentSubscriber object.

Parameters

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

\Drupal\commerce_shipping\Mail\ShipmentConfirmationMailInterface $shipment_confirmation_mail: The shipment confirmation mail service.

File

src/EventSubscriber/ShipmentSubscriber.php, line 44

Class

ShipmentSubscriber

Namespace

Drupal\commerce_shipping\EventSubscriber

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ShipmentConfirmationMailInterface $shipment_confirmation_mail) {
  $this->entityTypeManager = $entity_type_manager;
  $this->shipmentConfirmationMail = $shipment_confirmation_mail;
}