mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-06 12:38:40 +00:00
Add simplified create
This commit is contained in:
parent
c328c8fcef
commit
463df4dfd9
|
|
@ -82,6 +82,20 @@ class Request extends RequestAbstract
|
||||||
$this->init();
|
$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.
|
* Init request.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user