本文整理汇总了PHP中Tracy\Debugger::firelog方法的典型用法代码示例。如果您正苦于以下问题:PHP Debugger::firelog方法的具体用法?PHP Debugger::firelog怎么用?PHP Debugger::firelog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tracy\Debugger
的用法示例。
在下文中一共展示了Debugger::firelog方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: call
/**
* @param Request $request
*
* @return Response
*/
private function call(Request $request)
{
Debugger::firelog($request);
$ch = curl_init($this->endPoint);
// Set up verbose mode
curl_setopt($ch, CURLOPT_VERBOSE, true);
//turning off the server and peer verification(TrustManager Concept).
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
// We should check if paypal has valid certificate
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Just do normal POST
curl_setopt($ch, CURLOPT_POST, true);
if ($this->useProxy) {
curl_setopt($ch, CURLOPT_PROXY, $this->proxyHost . ':' . $this->proxyPort);
}
$request->addQuery(array('version' => self::VERSION, 'pwd' => $this->password, 'user' => $this->username, 'signature' => $this->signature));
// POST data
// Conversion to string is important!
// It's because it's called __toString magic method which calls
// in real $request->query->build();
curl_setopt($ch, CURLOPT_POSTFIELDS, (string) $request);
// Execute
$responseNVP = curl_exec($ch);
if (curl_errno($ch)) {
$this->err(curl_error($ch));
}
curl_close($ch);
$response = new Response($responseNVP);
Debugger::firelog($response);
return $response;
}