public function Github_Client::__construct in Bibliography Module 7.2
Instanciate a new GitHub client
Parameters
Github_HttpClient_Interface $httpClient custom http client:
File
- modules/
CiteProc/ Github/ Client.php, line 53
Class
- Github_Client
- Simple yet very cool PHP Github client
Code
public function __construct(Github_HttpClientInterface $httpClient = null) {
if (null === $httpClient) {
$this->httpClient = new Github_HttpClient_Curl();
}
else {
$this->httpClient = $httpClient;
}
}