[UTIL][Common] Add Common::getRequest

This commit is contained in:
Hugo Sales 2022-03-04 15:09:39 +00:00
parent 6cae6c925d
commit 7c9b01c516
Signed by untrusted user: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -67,6 +67,11 @@ abstract class Common
self::$request = $req; self::$request = $req;
} }
public static function getRequest(): Request
{
return self::$request;
}
public static function route() public static function route()
{ {
return self::$request->attributes->get('_route'); return self::$request->attributes->get('_route');