コード例 #1
0
 /**
  * Constructor
  *
  * @param  string $url to paybox endpoint
  *
  * @throws \RuntimeException If cURL is not available
  */
 public function __construct($url = '')
 {
     if (!function_exists('curl_init')) {
         throw new \RuntimeException('cURL is not available. Activate it first.');
     }
     parent::__construct($url);
 }
コード例 #2
0
 /**
  * {@inheritDoc}
  */
 public function __construct($url = '')
 {
     $this->browser = new Browser(new Curl());
     parent::__construct($url);
 }