mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 15:45:36 +08:00
refactor all base things
This commit is contained in:
@@ -48,4 +48,9 @@ class Route extends AnnotationBase
|
||||
$this->request_method = $request_method;
|
||||
$this->params = $params;
|
||||
}
|
||||
|
||||
public static function make($route, $name = '', $request_method = ['GET', 'POST'], $params = [])
|
||||
{
|
||||
return new static($route, $name, $request_method, $params);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user