You are here

public function CheckoutController::__construct in Ubercart 8.4

Constructs a CheckoutController.

Parameters

\Drupal\uc_cart\Plugin\CheckoutPaneManager $checkout_pane_manager: The checkout pane plugin manager.

\Drupal\uc_cart\CartManagerInterface $cart_manager: The cart manager.

\Symfony\Component\HttpFoundation\Session\SessionInterface $session: The session.

\Drupal\Component\Datetime\TimeInterface $date_time: The datetime.time service.

File

uc_cart/src/Controller/CheckoutController.php, line 63

Class

CheckoutController
Controller routines for the checkout.

Namespace

Drupal\uc_cart\Controller

Code

public function __construct(CheckoutPaneManager $checkout_pane_manager, CartManagerInterface $cart_manager, SessionInterface $session, TimeInterface $date_time) {
  $this->checkoutPaneManager = $checkout_pane_manager;
  $this->cartManager = $cart_manager;
  $this->session = $session;
  $this->dateTime = $date_time;
}