-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Config): configure http client through dsn string for eased env …
…var usage (#109)
- Loading branch information
Showing
6 changed files
with
41 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "0.7.x-dev" | ||
"dev-master": "1.0.x-dev" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,11 +36,7 @@ public function setUp() | |
{ | ||
parent::setUp(); | ||
|
||
$httpClient = new HttpClient( | ||
'GFHunwb2DHw', | ||
'gqvE7aZS_JM', | ||
['base_uri' => 'http://api.sandbox.textmaster.com/%s'] | ||
); | ||
$httpClient = new HttpClient('http://GFHunwb2DHw:[email protected]/v1'); | ||
$client = new Client($httpClient); | ||
$this->api = $client->author(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,11 +53,7 @@ public function setUp() | |
{ | ||
parent::setUp(); | ||
|
||
$httpClient = new HttpClient( | ||
'GFHunwb2DHw', | ||
'gqvE7aZS_JM', | ||
['base_uri' => 'http://api.sandbox.textmaster.com/%s'] | ||
); | ||
$httpClient = new HttpClient('http://GFHunwb2DHw:[email protected]/v1'); | ||
$client = new Client($httpClient); | ||
$this->api = $client->project(); | ||
} | ||
|
@@ -69,11 +65,7 @@ public static function tearDownAfterClass() | |
{ | ||
sleep(self::WAIT_TIME); | ||
|
||
$httpClient = new HttpClient( | ||
'GFHunwb2DHw', | ||
'gqvE7aZS_JM', | ||
['base_uri' => 'http://api.sandbox.textmaster.com/%s'] | ||
); | ||
$httpClient = new HttpClient('http://GFHunwb2DHw:[email protected]/v1'); | ||
$client = new Client($httpClient); | ||
$api = $client->project(); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters