Removing verbs

This commit is contained in:
Dennis Eichhorn 2015-12-20 22:26:24 +01:00
parent 8c95184780
commit fdef759d37

View File

@ -113,7 +113,7 @@ class Request extends RequestAbstract
if (isset($_SERVER['CONTENT_TYPE'])) { if (isset($_SERVER['CONTENT_TYPE'])) {
if (strpos($_SERVER['CONTENT_TYPE'], 'application/json') !== false) { if (strpos($_SERVER['CONTENT_TYPE'], 'application/json') !== false) {
if(($json = json_decode(($input = file_get_contents('php://input')), true)) === false || $json === null) { if (($json = json_decode(($input = file_get_contents('php://input')), true)) === false || $json === null) {
throw new \Exception('Is not valid json ' . $input); throw new \Exception('Is not valid json ' . $input);
} }
@ -132,6 +132,12 @@ class Request extends RequestAbstract
$this->uri->set($uri['uri']); $this->uri->set($uri['uri']);
} }
unset($_FILES);
unset($_GET);
unset($_POST);
unset($_PUT);
unset($_HEAD);
$this->path = explode('/', $this->uri->getPath()); $this->path = explode('/', $this->uri->getPath());
$this->l11n->setLanguage($this->path[0]); $this->l11n->setLanguage($this->path[0]);
$this->hash = []; $this->hash = [];