예제 #1
0
 /**
  * @param string $url
  * @param \Spryker\Shared\Transfer\TransferInterface $object
  * @param int|null $timeoutInSeconds (optional) default: null
  *
  * @return \Spryker\Shared\Transfer\TransferInterface
  */
 public function call($url, TransferInterface $object, $timeoutInSeconds = null)
 {
     self::$lastResponse = null;
     self::$lastResponse = $this->httpClient->request($url, $object, $this->prepareAndGetMetaTransfers(), $timeoutInSeconds);
     return self::$lastResponse->getTransfer();
 }