public function CommerceRepeatOrder::__construct in Commerce Repeat Order 8.2
Same name and namespace in other branches
- 8 src/Controller/CommerceRepeatOrder.php \Drupal\commerce_repeat_order\Controller\CommerceRepeatOrder::__construct()
CommerceRepeatOrder constructor.
Parameters
\Drupal\commerce_cart\CartManager $cartManager: The Commerce cart manager.
\Drupal\commerce_cart\CartProvider $cartProvider: The Commerce cart provider.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.
File
- src/
Controller/ CommerceRepeatOrder.php, line 66
Class
- CommerceRepeatOrder
- Controller to create repeat order.
Namespace
Drupal\commerce_repeat_order\ControllerCode
public function __construct(CartManager $cartManager, CartProvider $cartProvider, MessengerInterface $messenger, EventDispatcherInterface $event_dispatcher) {
$this->cartManager = $cartManager;
$this->cartProvider = $cartProvider;
$this->messenger = $messenger;
$this->dispatcher = $event_dispatcher;
}