mirror of
https://github.com/friendica/friendica
synced 2025-04-29 14:24:22 +02:00
Introduce HTPPRequest DI call and constructor
This commit is contained in:
parent
5344efef71
commit
9d00e4f1bc
2 changed files with 54 additions and 23 deletions
12
src/DI.php
12
src/DI.php
|
@ -323,6 +323,18 @@ abstract class DI
|
|||
return self::$dice->create(Model\Storage\IStorage::class);
|
||||
}
|
||||
|
||||
//
|
||||
// "Network" namespace
|
||||
//
|
||||
|
||||
/**
|
||||
* @return Network\HTTPRequest
|
||||
*/
|
||||
public static function httpRequest()
|
||||
{
|
||||
return self::$dice->create(Network\HTTPRequest::class);
|
||||
}
|
||||
|
||||
//
|
||||
// "Repository" namespace
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue