You are here

public function OrderEventSubscriber::__construct in Mailchimp E-Commerce 8

OrderEventSubscriber constructor.

Parameters

\Drupal\mailchimp_ecommerce\OrderHandler $order_handler: The Order Handler.

\Drupal\mailchimp_ecommerce\CartHandler $cart_handler: The Cart Handler.

\Drupal\mailchimp_ecommerce\CustomerHandler $customer_handler: The Customer Handler.

File

modules/mailchimp_ecommerce_commerce/src/EventSubscriber/OrderEventSubscriber.php, line 50

Class

OrderEventSubscriber
Event Subscriber for Commerce Orders.

Namespace

Drupal\mailchimp_ecommerce_commerce\EventSubscriber

Code

public function __construct(OrderHandler $order_handler, CartHandler $cart_handler, CustomerHandler $customer_handler) {
  $this->order_handler = $order_handler;
  $this->cart_handler = $cart_handler;
  $this->customer_handler = $customer_handler;
}