mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
Add simplified create
This commit is contained in:
parent
c328c8fcef
commit
463df4dfd9
|
|
@ -82,6 +82,20 @@ class Request extends RequestAbstract
|
|||
$this->init();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create request from super globals.
|
||||
*
|
||||
* @param Localization $l11n Localization
|
||||
*
|
||||
* @return Request
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public static function createFromSuperglobals(Localization $l11n = null) : Request
|
||||
{
|
||||
return new self($l11n);
|
||||
}
|
||||
|
||||
/**
|
||||
* Init request.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user