File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
lib/OpenCloud/Common/Http Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 18
18
namespace OpenCloud \Common \Http ;
19
19
20
20
use Guzzle \Http \Client as GuzzleClient ;
21
- use Guzzle \ Http \ Curl \ CurlVersion ;
21
+ use OpenCloud \ Version ;
22
22
use OpenCloud \Common \Exceptions \UnsupportedVersionError ;
23
23
24
24
/**
27
27
*/
28
28
class Client extends GuzzleClient
29
29
{
30
- const VERSION = '1.9.0 ' ;
31
30
const MINIMUM_PHP_VERSION = '5.3.0 ' ;
32
31
33
32
public function __construct ($ baseUrl = '' , $ config = null )
@@ -46,9 +45,10 @@ public function __construct($baseUrl = '', $config = null)
46
45
47
46
public function getDefaultUserAgent ()
48
47
{
49
- return 'OpenCloud/ ' . self ::VERSION
50
- . ' cURL/ ' . CurlVersion::getInstance ()->get ('version ' )
51
- . ' PHP/ ' . PHP_VERSION ;
48
+ return 'OpenCloud/ ' . Version::getVersion ()
49
+ . ' Guzzle/ ' . Version::getGuzzleVersion ()
50
+ . ' cURL/ ' . Version::getCurlVersion ()
51
+ . ' PHP/ ' . PHP_VERSION ;
52
52
}
53
53
54
54
public function getUserAgent ()
You can’t perform that action at this time.
0 commit comments