You are here

public function CheckoutController::__construct in Commerce PayPal 8

Constructs a PayPalCheckoutController object.

Parameters

\Drupal\commerce_paypal\CheckoutSdkFactoryInterface $checkout_sdk_factory: The PayPal Checkout SDK factory.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Psr\Log\LoggerInterface $logger: The logger.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

File

src/Controller/CheckoutController.php, line 69

Class

CheckoutController
PayPal checkout controller.

Namespace

Drupal\commerce_paypal\Controller

Code

public function __construct(CheckoutSdkFactoryInterface $checkout_sdk_factory, EntityTypeManagerInterface $entity_type_manager, LoggerInterface $logger, MessengerInterface $messenger) {
  $this->checkoutSdkFactory = $checkout_sdk_factory;
  $this->entityTypeManager = $entity_type_manager;
  $this->logger = $logger;
  $this->messenger = $messenger;
}