[UTIL][Common] Add Common::getRequest
This commit is contained in:
parent
6cae6c925d
commit
7c9b01c516
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user