diff options
Diffstat (limited to 'bootstrap/Request.php')
-rw-r--r-- | bootstrap/Request.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bootstrap/Request.php b/bootstrap/Request.php new file mode 100644 index 0000000..cc8e687 --- /dev/null +++ b/bootstrap/Request.php @@ -0,0 +1,14 @@ +<?php + +class Request +{ + public static function uri() + { + return (string) trim($_SERVER['REQUEST_URI'], "/"); + } + + public static function method() + { + return $_SERVER['REQUEST_METHOD']; + } +} |