Exemplo n.º 1
0
 protected function getOptions(array $options = [])
 {
     $handler_stack = isset($options['handler']) ? $options['handler'] : HandlerStack::create();
     $handler_stack->push(EffectiveUrlMiddleware::middleware());
     return ['base_url' => $this->apiUrl, 'defaults' => ['verify' => $this->getCacertFilePath()], 'handler' => $handler_stack] + $options;
 }
Exemplo n.º 2
0
 protected function getOptions(array $options = [])
 {
     $handler = isset($options['handler']) ? $options['handler'] : HandlerStack::create();
     $handler->push(EffectiveUrlMiddleware::middleware());
     return $options + ['base_uri' => $this->apiUrl, 'handler' => $handler, 'verify' => $this->getCacertFilePath()];
 }