Example #1
0
 public static function addRoute(Route $route)
 {
     static::$routes[] = $route;
     $method = $route->getMethod();
     $addr = $route->getAddr();
     $argsSize = $route->getArgsSize();
     $route->addToTree(static::$routesTree);
     return $route;
 }