add facade for filter::register.

This commit is contained in:
Taylor Otwell
2012-02-14 08:22:10 -06:00
parent 479b3f6773
commit 14c9d38270
2 changed files with 16 additions and 4 deletions

View File

@@ -337,4 +337,16 @@ class Route {
Router::secure($method, $route, $action);
}
/**
* Register a route filter.
*
* @param string $name
* @param Closure $callback
* @return void
*/
public static function filter($name, Closure $callback)
{
Filter::register($name, $callback);
}
}