Commit fc96014c authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #821 from daylerees/feature/clear-input

Added clear() method to the input class
parents 7354b5fc e3317324
......@@ -146,3 +146,9 @@ Sometimes you may wish to merge or replace the current input. Here's how:
#### Replacing the entire input array with new data:
Input::merge(array('doctor' => 'Bones', 'captain' => 'Kirk'));
## Clearing Input
To clear all input data for the current request, using the `clear()` method, for example:
Input::clear();
\ No newline at end of file
......@@ -287,4 +287,13 @@ class Input {
Request::foundation()->request->replace($input);
}
/**
* Clear the input for the current request.
* @return void
*/
public static function clear()
{
Request::foundation()->request->replace(array());
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment