Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/customize-guzzle-client' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Bianco committed Mar 30, 2021
2 parents c3fc2c8 + 6529655 commit c14b112
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "javanile/vtiger-client",
"version": "0.0.24",
"version": "0.0.25",
"license": "MIT",
"type": "project",
"authors": [
Expand Down
6 changes: 5 additions & 1 deletion src/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ public function __construct($args)
{
$this->endpoint = $args['endpoint'].'/webservice.php';

$this->client = new Client();
if (isset($args['verify'])) {
$args['guzzle']['verify'] = $args['verify'];
}

$this->client = new Client(isset($args['guzzle']) ? $args['guzzle'] : []);

$this->logger = new Logger($args);
}
Expand Down

0 comments on commit c14b112

Please sign in to comment.