Beispiel #1
0
 public function addRoute($routeName, $routeMethod, $routePath, $routeTarget, $parametersDefinitions, $middleware = null)
 {
     $computedRoutePath = $this->baseUri != '/' ? $this->baseUri . $routePath : $routePath;
     $this->routes[$routeName] = new Route($routeName, $routeMethod, $computedRoutePath, Suricate::Request(), $routeTarget, $parametersDefinitions, $middleware);
 }