[FEATURE] Added Input classes from pecee-framework.

- Updated documentation to reflect new changes.
This commit is contained in:
Simon Sessingø
2016-04-15 23:07:51 +02:00
parent 7a429cec1d
commit 17adfb8aa4
6 changed files with 472 additions and 0 deletions
+3
View File
@@ -1,6 +1,8 @@
<?php
namespace Pecee\Http;
use Pecee\Http\Input\Input;
class Request {
protected static $instance;
@@ -24,6 +26,7 @@ class Request {
$this->uri = $_SERVER['REQUEST_URI'];
$this->method = (isset($_POST['_method'])) ? strtolower($_POST['_method']) : strtolower($_SERVER['REQUEST_METHOD']);
$this->headers = $this->getAllHeaders();
$this->input = new Input();
}
protected function getAllHeaders() {