Introduce interface "IHTTPRequest" (rely on abstractions, not on concrete implementations)
This commit is contained in:
parent
657d08f09f
commit
0a421064a5
4 changed files with 136 additions and 66 deletions
|
|
@ -328,11 +328,11 @@ abstract class DI
|
|||
//
|
||||
|
||||
/**
|
||||
* @return Network\HTTPRequest
|
||||
* @return Network\IHTTPRequest
|
||||
*/
|
||||
public static function httpRequest()
|
||||
{
|
||||
return self::$dice->create(Network\HTTPRequest::class);
|
||||
return self::$dice->create(Network\IHTTPRequest::class);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue