You are here

public function PayPalController::__construct in Ubercart 8.4

Constructs a CheckoutController.

Parameters

\Drupal\uc_payment\Plugin\PaymentMethodManager $payment_method_manager: The payment method manager.

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

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

\Drupal\Core\Database\Connection $database: A database connection.

File

payment/uc_paypal/src/Controller/PayPalController.php, line 63

Class

PayPalController
Returns responses for PayPal routes.

Namespace

Drupal\uc_paypal\Controller

Code

public function __construct(PaymentMethodManager $payment_method_manager, SessionInterface $session, TimeInterface $date_time, Connection $database) {
  $this->paymentMethodManager = $payment_method_manager;
  $this->session = $session;
  $this->dateTime = $date_time;
  $this->database = $database;
}