added Input::merge method.

This commit is contained in:
Taylor Otwell
2012-04-23 13:33:48 -05:00
parent bb506bb30b
commit f1feb467f1
2 changed files with 12 additions and 0 deletions

View File

@@ -228,4 +228,15 @@ class Input {
Session::flash(Input::old_input, array());
}
/**
* Merge new input into the current request's input array.
*
* @param array $input
* @return void
*/
public static function merge(array $input)
{
Request::foundation()->request->replace($input);
}
}