Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 protected function validateConfiguration()
 {
     parent::validateConfiguration();
     if (!$this->transport instanceof MagentoTransportInterface) {
         throw new \LogicException('Option "transport" should implement "MagentoTransportInterface"');
     }
 }
 /**
  * {@inheritdoc}
  */
 protected function validateConfiguration()
 {
     parent::validateConfiguration();
     if (!$this->transport instanceof \Integration\ZohoInvoicingBundle\Provider\Transport\ZohoTransportInterface) {
         throw new \LogicException('Option "transport" should implement "ZohoTransportInterface"');
     }
 }
 /**
  * @param ContextRegistry          $contextRegistry
  * @param LoggerStrategy           $logger
  * @param ConnectorContextMediator $contextMediator
  * @param RegistryInterface        $registry
  */
 public function __construct(ContextRegistry $contextRegistry, LoggerStrategy $logger, ConnectorContextMediator $contextMediator, RegistryInterface $registry)
 {
     parent::__construct($contextRegistry, $logger, $contextMediator);
     $this->registry = $registry;
 }