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

@@ -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
*/

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);