public function createRouter(App $app, array $config = []): Router
    {
        $routes = $this->mergeRoutes($app, $this->buildRoutes($config));
        
        return new PathRouter(...$this->generateRouterData($routes));
    }
public function createRouter(App $app, array $config = []): Router
    {
        $routes = $this->mergeRoutes($app, $this->buildRoutes($config));
        
        return new PathRouter(...$this->generateRouterData($routes));
    }
public function createRouter ( App $ app , array $ config = [ ] ) : Router { $ routes = $ this -> mergeRoutes ( $ app , $ this -> buildRoutes ( $ config ) ) ; return new PathRouter ( ... $ this -> generateRouterData ( $ routes ) ) ; }
Create a path router and URI generator from the given routes.
Create a path router and URI generator from the given routes .