Cml\Route::group PHP Method

group() public static method

分组路由
public static group ( string $namespace, callable $func )
$namespace string 分组名
$func callable 闭包
    public static function group($namespace, callable $func)
    {
        Cml::getContainer()->make('cml_route')->group($namespace, $func);
    }