Skip to content

Commit

Permalink
Allow url overide for local dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Braybrooke committed Aug 23, 2018
1 parent b50b140 commit 239a1f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/B2.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ class B2
* @param \GuzzleHttp\Client $guzzle
* @return void
*/
public function __construct($apiKey, HttpClient $guzzle = null)
public function __construct($apiKey, HttpClient $guzzle = null, $baseUrl = null)
{
$this->baseUrl = $baseUrl ?: $this->baseUrl;
$this->apiKey = $apiKey;
$this->guzzle = $guzzle ?: new HttpClient([
'base_uri' => $this->baseUrl,
Expand Down

0 comments on commit 239a1f0

Please sign in to comment.