Omnipay\Common\Message\AbstractRequest::__construct PHP Метод

__construct() публичный Метод

Create a new Request
public __construct ( Guzzle\Http\ClientInterface $httpClient, Request $httpRequest )
$httpClient Guzzle\Http\ClientInterface A Guzzle client to make API calls with
$httpRequest Symfony\Component\HttpFoundation\Request A Symfony HTTP request object
    public function __construct(ClientInterface $httpClient, HttpRequest $httpRequest)
    {
        $this->httpClient = $httpClient;
        $this->httpRequest = $httpRequest;
        $this->initialize();
    }

Usage Example

 /**
  * 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);
 }
All Usage Examples Of Omnipay\Common\Message\AbstractRequest::__construct