Ejemplo n.º 1
0
 public function __construct(array $options = [], HttpClientFactory $httpClientFactory = null, EventDispatcher $dispatcher = null, TransformerInterface $transformer = null, AuthFactory $authFactory = null, CacheFactory $cacheFactory = null)
 {
     $this->options = array_merge($this->options, $options);
     $this->tmpDispatcher = $dispatcher ?: new EventDispatcher();
     parent::__construct($httpClientFactory === null ? new HttpClientFactory($this->options) : $httpClientFactory, $dispatcher, $transformer, $authFactory, $cacheFactory);
 }
Ejemplo n.º 2
0
 public function __construct(array $options = [], HttpClientFactory $httpClientFactory = null, EventDispatcher $dispatcher = null, TransformerInterface $transformer = null, AuthFactory $authFactory = null, CacheFactory $cacheFactory = null)
 {
     $this->options = array_merge($this->options, $options);
     parent::__construct($httpClientFactory === null ? new HttpClientFactory($this->options) : $httpClientFactory, $dispatcher, $transformer, $authFactory, $cacheFactory);
     $this->getAuthFactory()->addNamespace('Scoringline\\SendinblueApi\\Http\\Auth');
 }