diff options
author | Thedro Neely <thedroneely@gmail.com> | 2018-08-30 04:40:53 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2018-08-30 04:40:53 -0400 |
commit | 2659205908bd5cab508f4ff817123673e078ab74 (patch) | |
tree | e455f36b124e9b98f7005e6d4310b71881734623 /bootstrap/Request.php | |
download | edwinmattiacci.com-2659205908bd5cab508f4ff817123673e078ab74.tar.gz edwinmattiacci.com-2659205908bd5cab508f4ff817123673e078ab74.tar.bz2 edwinmattiacci.com-2659205908bd5cab508f4ff817123673e078ab74.zip |
Initialize Repo: First Commit
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']; + } +} |