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; }
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()]; }