public function CheckoutSdkFactory::__construct in Commerce PayPal 8
Constructs a new CheckoutSdkFactory object.
Parameters
\Drupal\Core\Http\ClientFactory $client_factory: The client factory.
\GuzzleHttp\HandlerStack $stack: The handler stack.
\Drupal\commerce_order\AdjustmentTransformerInterface $adjustment_transformer: The adjustment transformer.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\State\StateInterface $state: The state service.
\Drupal\Component\Datetime\TimeInterface $time: The time.
File
- src/
CheckoutSdkFactory.php, line 93
Class
- CheckoutSdkFactory
- Defines a factory for our custom PayPal checkout SDK.
Namespace
Drupal\commerce_paypalCode
public function __construct(ClientFactory $client_factory, HandlerStack $stack, AdjustmentTransformerInterface $adjustment_transformer, EventDispatcherInterface $event_dispatcher, ModuleHandlerInterface $module_handler, StateInterface $state, TimeInterface $time) {
$this->clientFactory = $client_factory;
$this->stack = $stack;
$this->adjustmentTransformer = $adjustment_transformer;
$this->eventDispatcher = $event_dispatcher;
$this->moduleHandler = $module_handler;
$this->state = $state;
$this->time = $time;
}