You are here

public function WorldpayRedirect::__construct in Commerce Worldpay 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Commerce/PaymentGateway/WorldpayRedirect.php \Drupal\commerce_worldpay\Plugin\Commerce\PaymentGateway\WorldpayRedirect::__construct()

Constructs a new PaymentGatewayBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

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

\Drupal\commerce_payment\PaymentTypeManager $payment_type_manager: The payment type manager.

\Drupal\commerce_payment\PaymentMethodTypeManager $payment_method_type_manager: The payment method type manager.

\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack.

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

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

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler service.

Overrides PaymentGatewayBase::__construct

File

src/Plugin/Commerce/PaymentGateway/WorldpayRedirect.php, line 109

Class

WorldpayRedirect
Provides the Worldpay Redirect payment gateway.

Namespace

Drupal\commerce_worldpay\Plugin\Commerce\PaymentGateway

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, PaymentTypeManager $payment_type_manager, PaymentMethodTypeManager $payment_method_type_manager, RequestStack $requestStack, LoggerInterface $logger, TimeInterface $time, ModuleHandlerInterface $moduleHandler, LinkGeneratorInterface $linkGenerator) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $payment_type_manager, $payment_method_type_manager, $time);
  $this->requestStack = $requestStack;
  $this->logger = $logger;
  $this->time = $time;
  $this->moduleHandler = $moduleHandler;
  $this->linkGenerator = $linkGenerator;
}