/**
  * @param array $handlers
  * @param TMapFactory $tmapFactory
  */
 public function __construct(array $handlers, TMapFactory $tmapFactory)
 {
     if (!isset($handlers[self::DEFAULT_HANDLER])) {
         throw new \LogicException('Default handler should be provided.');
     }
     $this->handlers = $tmapFactory->create(['array' => $handlers, 'type' => 'Magento\\Payment\\Gateway\\Config\\ValueHandlerInterface']);
 }
 /**
  * @param TMapFactory $tmapFactory
  * @param array $handlers
  */
 public function __construct(TMapFactory $tmapFactory, array $handlers)
 {
     if (!isset($handlers[self::DEFAULT_HANDLER])) {
         throw new \LogicException('Default handler should be provided.');
     }
     $this->handlers = $tmapFactory->create(['array' => $handlers, 'type' => ValueHandlerInterface::class]);
 }
 /**
  * @param array $builders
  * @param TMapFactory $tmapFactory
  */
 public function __construct(array $builders, TMapFactory $tmapFactory)
 {
     $this->builders = $tmapFactory->create(['array' => $builders, 'type' => 'Magento\\Payment\\Gateway\\Request\\BuilderInterface']);
 }
 /**
  * @param TMapFactory $tmapFactory
  * @param array $validators
  */
 public function __construct(TMapFactory $tmapFactory, array $validators = [])
 {
     $this->validators = $tmapFactory->create(['array' => $validators, 'type' => ValidatorInterface::class]);
 }
 /**
  * @param TMapFactory $tmapFactory
  * @param array $builders
  */
 public function __construct(TMapFactory $tmapFactory, array $builders = [])
 {
     $this->builders = $tmapFactory->create(['array' => $builders, 'type' => BuilderInterface::class]);
 }
 /**
  * @param ResultInterfaceFactory $resultFactory
  * @param array $validators
  * @param TMapFactory $tmapFactory
  */
 public function __construct(ResultInterfaceFactory $resultFactory, array $validators, TMapFactory $tmapFactory)
 {
     $this->validators = $tmapFactory->create(['array' => $validators, 'type' => 'Magento\\Payment\\Gateway\\Validator\\ValidatorInterface']);
     parent::__construct($resultFactory);
 }
Example #7
0
 /**
  * @param TMapFactory $tmapFactory
  * @param array $commands
  */
 public function __construct(TMapFactory $tmapFactory, array $commands = [])
 {
     $this->commands = $tmapFactory->create(['array' => $commands, 'type' => CommandInterface::class]);
 }
 /**
  * @param ResultInterfaceFactory $resultFactory
  * @param TMapFactory $tmapFactory
  * @param array $validators
  */
 public function __construct(ResultInterfaceFactory $resultFactory, TMapFactory $tmapFactory, array $validators = [])
 {
     $this->validators = $tmapFactory->create(['array' => $validators, 'type' => ValidatorInterface::class]);
     parent::__construct($resultFactory);
 }
 /**
  * @param array $handlers
  * @param TMapFactory $tmapFactory
  */
 public function __construct(array $handlers, TMapFactory $tmapFactory)
 {
     $this->handlers = $tmapFactory->create(['array' => $handlers, 'type' => 'Magento\\Payment\\Gateway\\Response\\HandlerInterface']);
 }
Example #10
0
 /**
  * @param TMapFactory $tmapFactory
  * @param array $executors
  */
 public function __construct(TMapFactory $tmapFactory, array $executors = [])
 {
     $this->executors = $tmapFactory->createSharedObjectsMap(['array' => $executors, 'type' => CommandManagerInterface::class]);
 }
Example #11
0
 /**
  * @param array $commands
  * @param TMapFactory $tmapFactory
  */
 public function __construct(array $commands, TMapFactory $tmapFactory)
 {
     $this->commands = $tmapFactory->create(['array' => $commands, 'type' => 'Magento\\Payment\\Gateway\\CommandInterface']);
 }