From ec355c90b509009f54beafcb702e547708dc42e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sessing=C3=B8?= Date: Fri, 15 Apr 2016 23:20:16 +0200 Subject: [PATCH] Removed old input method from Request class. --- src/Pecee/Http/Request.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Pecee/Http/Request.php b/src/Pecee/Http/Request.php index 75417d8..9b589cd 100644 --- a/src/Pecee/Http/Request.php +++ b/src/Pecee/Http/Request.php @@ -125,13 +125,11 @@ class Request { } /** - * Get request input or default value - * @param string $name - * @param string $defaultValue - * @return mixed + * Get input class + * @return Input */ - public function getInput($name, $defaultValue) { - return (isset($_REQUEST[$name]) ? $_REQUEST[$name] : $defaultValue); + public function getInput() { + return $this->input; } public function isFormatAccepted($format) {