public function CartEventSubscriber::__construct in Mailchimp E-Commerce 8
CartEventSubscriber constructor.
Parameters
\Drupal\mailchimp_ecommerce\CartHandler $cart_handler: The Cart Handler.
\Drupal\mailchimp_ecommerce\OrderHandler $order_handler: The Order Handler.
\Drupal\mailchimp_ecommerce\CustomerHandler $customer_handler: The Customer Handler.
File
- modules/
mailchimp_ecommerce_commerce/ src/ EventSubscriber/ CartEventSubscriber.php, line 53
Class
- CartEventSubscriber
- Event Subscriber for Commerce Carts.
Namespace
Drupal\mailchimp_ecommerce_commerce\EventSubscriberCode
public function __construct(CartHandler $cart_handler, OrderHandler $order_handler, CustomerHandler $customer_handler) {
$this->cart_handler = $cart_handler;
$this->order_handler = $order_handler;
$this->customer_handler = $customer_handler;
}