cleaning up more code.
This commit is contained in:
@@ -122,6 +122,10 @@ class Filter_Collection {
|
||||
/**
|
||||
* Determine if this collection's filters apply to a given method.
|
||||
*
|
||||
* Methods may be included / excluded using the "only" and "except" methods on the
|
||||
* filter collection. Also, the "on" method may be used to set certain filters to
|
||||
* only run when the request uses a given HTTP verb.
|
||||
*
|
||||
* @param string $method
|
||||
* @return bool
|
||||
*/
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user