aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/Request.php
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2018-08-30 04:40:53 -0400
committerThedro Neely <thedroneely@gmail.com>2018-08-30 04:40:53 -0400
commit2659205908bd5cab508f4ff817123673e078ab74 (patch)
treee455f36b124e9b98f7005e6d4310b71881734623 /bootstrap/Request.php
downloadedwinmattiacci.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.php14
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'];
+ }
+}