31 lines
673 B
PHP
31 lines
673 B
PHP
<?php
|
|
|
|
namespace Khofmann\Input;
|
|
|
|
use Khofmann\Request\Request;
|
|
|
|
class Input
|
|
{
|
|
|
|
|
|
public static function post($index, $defaultValue = null)
|
|
{
|
|
return Request::request()->getInputHandler()->post($index, $defaultValue);
|
|
}
|
|
|
|
public static function patch($index, $defaultValue = null)
|
|
{
|
|
return Request::request()->getInputHandler()->post($index, $defaultValue);
|
|
}
|
|
|
|
public static function get($index, $defaultValue = null)
|
|
{
|
|
return Request::request()->getInputHandler()->get($index, $defaultValue);
|
|
}
|
|
|
|
public static function file($index, $defaultValue = null)
|
|
{
|
|
return Request::request()->getInputHandler()->file($index, $defaultValue);
|
|
}
|
|
}
|