refactoring for dependency injection and testability.
This commit is contained in:
@@ -213,20 +213,4 @@ class Request {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic Method for dynamically retrieving properties of the request instance.
|
||||
*
|
||||
* <code>
|
||||
* // Get all of the input for the request
|
||||
* $input = Request::active()->input;
|
||||
* </code>
|
||||
*/
|
||||
public function __get($key)
|
||||
{
|
||||
if ($key === 'input')
|
||||
{
|
||||
return $this->input->all();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user