Create a new Request
public __construct ( Guzzle\Http\ClientInterface $httpClient, |
||
$httpClient | Guzzle\Http\ClientInterface | A Guzzle client to make API calls with |
$httpRequest | A Symfony HTTP request object |
/** * Create a new Request * * @param ClientInterface $httpClient A Guzzle client to make API calls with * @param HttpRequest $httpRequest A Symfony HTTP request object * @param Braintree_Gateway $braintree The Braintree Gateway */ public function __construct(ClientInterface $httpClient, HttpRequest $httpRequest, Braintree_Gateway $braintree) { $this->braintree = $braintree; parent::__construct($httpClient, $httpRequest); }
/** * Create a new Request * * @param ClientInterface $httpClient A Guzzle client to make API calls with * @param HttpRequest $httpRequest A Symfony HTTP request object */ public function __construct(ClientInterface $httpClient, HttpRequest $httpRequest) { parent::__construct($httpClient, $httpRequest); $this->request = $this->createRequest(); }
/** * Create a new Request * * @param ClientInterface $httpClient A Guzzle client to make API calls with * @param HttpRequest $httpRequest A Symfony HTTP request object * @param SoapClient $soapClient */ public function __construct(ClientInterface $httpClient, HttpRequest $httpRequest, SoapClient $soapClient = null) { parent::__construct($httpClient, $httpRequest); $this->soapClient = $soapClient; }
/** * Create a new Request * * @param SoapClient $soapClient A SoapClient to make calls with * @param ClientInterface $httpClient A Guzzle client to make API calls with * @param HttpRequest $httpRequest A Symfony HTTP request object */ public function __construct(SoapClient $soapClient, ClientInterface $httpClient = null, HttpRequest $httpRequest = null) { parent::__construct($httpClient, $httpRequest); $this->soapClient = $soapClient; $this->initialize(); }