mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
MVC - add missing request->getURI()
This commit is contained in:
parent
aa8fe94ce0
commit
dc25dbc5fb
@ -50,6 +50,14 @@ class Request
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string request uri
|
||||
*/
|
||||
public function getURI(): string
|
||||
{
|
||||
return $_SERVER['REQUEST_URI'] ?? '';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string method name (GET, POST, PUT, ...)
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user