27 lines
618 B
PHP
27 lines
618 B
PHP
<?php
|
|
|
|
namespace Khofmann\Input;
|
|
|
|
class Input
|
|
{
|
|
public static function header($name, $defaultValue = null, $tryParse = true)
|
|
{
|
|
return request()->getHeader($name, $defaultValue, $tryParse);
|
|
}
|
|
|
|
public static function post($index, $defaultValue = null)
|
|
{
|
|
return request()->getInputHandler()->post($index, $defaultValue);
|
|
}
|
|
|
|
public static function get($index, $defaultValue = null)
|
|
{
|
|
return request()->getInputHandler()->get($index, $defaultValue);
|
|
}
|
|
|
|
public static function file($index, $defaultValue = null)
|
|
{
|
|
return request()->getInputHandler()->file($index, $defaultValue);
|
|
}
|
|
}
|