getInputHandler()->post($index, $defaultValue); return !is_object($value) ? $value : $value->getValue(); } public static function patch(string $index, $defaultValue = null) { $value = Request::request()->getInputHandler()->post($index, $defaultValue); return !is_object($value) ? $value : $value->getValue(); } public static function get(string $index, $defaultValue = null) { $value = Request::request()->getInputHandler()->get($index, $defaultValue); return !is_object($value) ? $value : $value->getValue(); } public static function file(string $index, $defaultValue = null) { $value = Request::request()->getInputHandler()->file($index, $defaultValue); return !is_object($value) ? $value : $value->getValue(); } }