Implementing middlewares 0.4
This commit is contained in:
@@ -275,8 +275,11 @@ class RouteCollection{
|
||||
$this->_routes[] = $route;
|
||||
}
|
||||
|
||||
function addMiddleware($name = '', $function){
|
||||
$this->_default_middlewares[$name] = $function;
|
||||
/*
|
||||
*
|
||||
*/
|
||||
static function addMiddleware($name = '', $function){
|
||||
self::getInstance()->_default_middlewares[$name] = $function;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user