getParentRouter(); // TODO: cleanup prefix } private function getParentRouter(): IRouter { return $this->router; } public function scopeTo(string $prefix): IRouter { return $this->router->scopeTo($this->prefix . $prefix); } public function add(string $method, string $path, callable $handler): void { $this->router->add($method, $this->prefix . $path, $handler); } public function use(string $path, callable $handler): void { $this->router->use($this->prefix . $path, $handler); } public function resolve(string $method, string $path): ResolvedRouteInfo { return $this->router->resolve($method, $this->prefix . $path); } }