for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CanalTP\AbstractGuzzle\Version;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\Client;
use CanalTP\AbstractGuzzle\Guzzle;
class Guzzle6 extends Guzzle
{
/**
* @var Client
*/
private $client;
* {@InheritDoc}
public function __construct($baseUri)
parent::__construct($baseUri);
$this->initClient();
}
* Init Guzzle6 client with base url.
public function initClient()
$client = new Client(array(
'base_uri' => $this->getBaseUri(),
));
$this->setClient($client);
* @return Client
public function getClient()
return $this->client;
* @param Client $client
*
* @return self
public function setClient(Client $client)
$this->client = $client;
return $this;
public function send(Request $request)
return $this->client->send($request);