|
|
@@ -185,6 +185,23 @@ class RouteCollection {
|
|
|
return $route;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ static function cli($uri, $callback, $weight = 0) {
|
|
|
+ $route = new Route();
|
|
|
+ $route->_verb[] = 'CLI';
|
|
|
+
|
|
|
+ $route->_uri = $uri;
|
|
|
+ $route->_callback[] = $callback;
|
|
|
+ $route->_weight = $weight;
|
|
|
+ $route->prepare();
|
|
|
+
|
|
|
+ self::getInstance()->_routes[] = $route;
|
|
|
+
|
|
|
+ return $route;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
*
|
|
|
*/
|