Introduce interface "IHTTPRequest" (rely on abstractions, not on concrete implementations)

This commit is contained in:
nupplaPhil
2020-03-04 22:56:16 +01:00
committed by Hypolite Petovan
parent 657d08f09f
commit 0a421064a5
4 changed files with 136 additions and 66 deletions

View File

@@ -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);
}
//