Skip to content

Commit

Permalink
Fix namespace handling with http client
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Auditor committed Jul 4, 2016
1 parent 871458a commit b4cb63b
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/BigBlueButton/Client.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
<?php

/**
* @file
* Contains sanduhrs\BigBlueButton\Client.
*/

namespace sanduhrs\BigBlueButton;

use \GuzzleHttp\Client as HTTPClient;
use GuzzleHttp\Client as HTTPClient;
use sanduhrs\BigBlueButton\BigBlueButtonException;

/**
Expand Down Expand Up @@ -60,7 +55,7 @@ public function __construct(
$this->url = $url;
$this->secret = $secret;
$this->endpoint = $endpoint;
$this->client = new Client();
$this->client = new HTTPClient();
}

/**
Expand Down Expand Up @@ -223,7 +218,7 @@ public function getRaw($call, $options = [])
$options += [
'checksum' => $this->checksum($call, $options),
];
$response = $this->HTTPClient->request(
$response = $this->client->request(
'GET',
$this->url . $this->endpoint . $call,
['query' => $options]
Expand Down Expand Up @@ -277,7 +272,7 @@ public function postRaw($call, $options = [])
$options += [
'checksum' => $this->checksum($call, $options),
];
$response = $this->HTTPClient->request(
$response = $this->client->request(
'POST',
$this->url . $this->endpoint . $call,
['form_params' => $options]
Expand Down

0 comments on commit b4cb63b

Please sign in to comment.