Removed old input method from Request class.

This commit is contained in:
Simon Sessingø
2016-04-15 23:20:16 +02:00
parent 7fdeef74d6
commit ec355c90b5
+4 -6
View File
@@ -125,13 +125,11 @@ class Request {
} }
/** /**
* Get request input or default value * Get input class
* @param string $name * @return Input
* @param string $defaultValue
* @return mixed
*/ */
public function getInput($name, $defaultValue) { public function getInput() {
return (isset($_REQUEST[$name]) ? $_REQUEST[$name] : $defaultValue); return $this->input;
} }
public function isFormatAccepted($format) { public function isFormatAccepted($format) {