/** * AbstractProcessor constructor. * * @param EventDispatcherInterface $dispatcher * @param LoggerInterface $logger * @param Factory $factory */ public function __construct(EventDispatcherInterface $dispatcher, LoggerInterface $logger, Factory $factory) { parent::__construct($dispatcher, $logger); $this->mirakl = $factory->getMirakl(); $this->hipay = $factory->getHiPay(); }
/** * Handler constructor. * * @param OperationManager $operationManager * @param EventDispatcherInterface $dispatcher * @param LoggerInterface $logger * @param VendorManagerInterface $vendorManager */ public function __construct(EventDispatcherInterface $dispatcher, LoggerInterface $logger, OperationManager $operationManager, VendorManagerInterface $vendorManager) { parent::__construct($dispatcher, $logger); $this->operationManager = $operationManager; $this->vendorManager = $vendorManager; }