mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-22 04:53:46 +09:00
Added Dependecy Injector methods to Box_Curl()
This commit is contained in:
1 parent
94433bdd75
commit
77a8eb4548
1 file changed
+22
-1
@@ -31,7 +31,28 @@ class Box_Curl {
|
||||
public $authentication = 0;
|
||||
public $auth_name = '';
|
||||
public $auth_pass = '';
|
||||
|
||||
|
||||
/**
|
||||
* @var \Box_Di
|
||||
*/
|
||||
protected $di = null;
|
||||
|
||||
/**
|
||||
* @param \Box_Di $di
|
||||
*/
|
||||
public function setDi($di)
|
||||
{
|
||||
$this->di = $di;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Box_Di
|
||||
*/
|
||||
public function getDi()
|
||||
{
|
||||
return $this->di;
|
||||
}
|
||||
|
||||
public function __construct($url, $timeOut = 30, $followlocation = true, $maxRedirecs = 4, $binaryTransfer = false, $includeHeader = false, $noBody = false) {
|
||||
if (!extension_loaded('curl')) {
|
||||
throw new \Box_Exception('CURL extension is not enabled');
|
||||
|
||||
Reference in new issue
Block a user