cleaning up more code.

This commit is contained in:
Taylor Otwell
2011-11-21 22:22:41 -06:00
parent 64501dd097
commit 937441d31b
4 changed files with 19 additions and 0 deletions

View File

@@ -140,6 +140,9 @@ class Route {
*/
protected function response()
{
// If the route callback is an instance of a Closure, we can call the
// route function directly. There are no before or after filters to
// parse out of the route.
if ($this->callback instanceof Closure)
{
return call_user_func_array($this->callback, $this->parameters);