MVC - add missing request->getURI()

This commit is contained in:
Ad Schellevis 2024-10-22 11:53:25 +02:00
parent aa8fe94ce0
commit dc25dbc5fb

View File

@ -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, ...)
*/