Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions lib/OpenCloud/Common/Http/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,13 @@

use Guzzle\Http\Client as GuzzleClient;
use OpenCloud\Version;
use OpenCloud\Common\Exceptions\UnsupportedVersionError;

/**
* Base client object which handles HTTP transactions. Each service is based off of a Client which acts as a
* centralized parent.
*/
class Client extends GuzzleClient
{
const MINIMUM_PHP_VERSION = '5.3.0';

public function __construct($baseUrl = '', $config = null)
{
// @codeCoverageIgnoreStart
if (PHP_VERSION < self::MINIMUM_PHP_VERSION) {
throw new UnsupportedVersionError(sprintf(
'You must have PHP version >= %s installed.',
self::MINIMUM_PHP_VERSION
));
}
// @codeCoverageIgnoreEnd

parent::__construct($baseUrl, $config);
}

public function getDefaultUserAgent()
{
return 'OpenCloud/' . Version::getVersion()
Expand Down