コード例 #1
0
ファイル: PizzApi.php プロジェクト: valanz/pizzawesome
 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);
 }
コード例 #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');
 }