/** * @param \GuzzleHttp\ClientInterface $httpClient * @param string $baseUrl * @param null $file * * @throws \Symfony\Component\Yaml\Exception\ParseException * @throws \InvalidArgumentException */ public function __construct(ClientInterface $httpClient, $baseUrl = '', $file = null) { if ($file !== null) { $this->loadFromYml($file); } parent::__construct($httpClient, $baseUrl); }
/** * @param array $options */ function __construct($file = null, $options = []) { if (!is_null($file)) { $this->loadFromYml($file); } parent::__construct($options); }