Skip to content

Commit 237112a

Browse files
committed
Renaming OutgoingRequest to CURLRequest to better describe what it will do.
1 parent 058820e commit 237112a

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php namespace CodeIgniter\HTTP;
22

3+
use App\Config\AppConfig;
4+
35
/**
46
* Class OutgoingRequest
57
*
@@ -10,7 +12,7 @@
1012
*
1113
* @package CodeIgniter\HTTPLite
1214
*/
13-
class OutgoingRequest extends Request
15+
class CURLRequest extends Request
1416
{
1517
protected $baseURI;
1618

@@ -27,12 +29,14 @@ class OutgoingRequest extends Request
2729
*
2830
* @param array $options
2931
*/
30-
public function __construct(array $options = [])
32+
public function __construct(AppConfig $config, $uri=null, $body=null)
3133
{
3234
if (! function_exists('curl_version'))
3335
{
3436
throw new \RuntimeException('CURL must be enabled to use the OutgoingRequest class.');
3537
}
38+
39+
parent::__construct($config, $uri, $body);
3640
}
3741

3842
//--------------------------------------------------------------------

0 commit comments

Comments
 (0)