refactoring for dependency injection.
This commit is contained in:
@@ -80,14 +80,6 @@ class Input {
|
||||
*
|
||||
* This method should be used for all request methods (GET, POST, PUT, and DELETE).
|
||||
*
|
||||
* <code>
|
||||
* // Get the "name" item from the input data
|
||||
* $name = Request::active()->input->get('name');
|
||||
*
|
||||
* // Get the "name" item and return "Fred" if it doesn't exist.
|
||||
* $name = Request::active()->input->get('name', 'Fred');
|
||||
* </code>
|
||||
*
|
||||
* @param string $key
|
||||
* @param mixed $default
|
||||
* @return string
|
||||
@@ -111,11 +103,6 @@ class Input {
|
||||
/**
|
||||
* Get input data from the previous request.
|
||||
*
|
||||
* <code>
|
||||
* // Get the "name" item from the old input data
|
||||
* $name = Request::active()->input->old('name');
|
||||
* </code>
|
||||
*
|
||||
* @param string $key
|
||||
* @param mixed $default
|
||||
* @return string
|
||||
@@ -132,14 +119,6 @@ class Input {
|
||||
*
|
||||
* "Dot" syntax may be used to get a specific item from the file array.
|
||||
*
|
||||
* <code>
|
||||
* // Get the array of information regarding a given file
|
||||
* $file = Request::active()->input->file('picture');
|
||||
*
|
||||
* // Get the size of a given file
|
||||
* $file = Request::active()->input->file('picture.size');
|
||||
* </code>
|
||||
*
|
||||
* @param string $key
|
||||
* @param mixed $default
|
||||
* @return array
|
||||
@@ -165,11 +144,6 @@ class Input {
|
||||
|
||||
/**
|
||||
* Magic Method for retrieving items from the request input.
|
||||
*
|
||||
* <code>
|
||||
* // Retrieve the "name" item from the input data
|
||||
* $name = Request::active()->input->name;
|
||||
* </code>
|
||||
*/
|
||||
public function __get($key)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user