public function addRoute(RouteInterface $route) { $this->routes[] = $route; return $this; }
public static function createRouterWithoutInit() { $router = new Router(new Container()); $router->addRoute(new RouteFixture()); return $router; }