public function mount($prefix, RouterInterface $router, array $meta = [])
    {
        $prefix = '/' . trim($prefix, '/');
        foreach($router->routes() as $route) {
            $route->uri = $prefix . $route->uri;
            $route->meta = array_merge($route->meta, $meta);
            $query = static::clean($route->method . ' ' . $route->uri);
            $this->routes[$query] = $route;
        }

        return $this;
    }
public function mount($prefix, RouterInterface $router, array $meta = [])
    {
        $prefix = '/' . trim($prefix, '/');
        foreach($router->routes() as $route) {
            $route->uri = $prefix . $route->uri;
            $route->meta = array_merge($route->meta, $meta);
            $query = static::clean($route->method . ' ' . $route->uri);
            $this->routes[$query] = $route;
        }

        return $this;
    }
public function mount ( $ prefix , RouterInterface $ router , array $ meta = [ ] ) { $ prefix = '/' . trim ( $ prefix , '/' ) ; foreach ( $ router -> routes ( ) as $ route ) { $ route -> uri = $ prefix . $ route -> uri ; $ route -> meta = array_merge ( $ route -> meta , $ meta ) ; $ query = static :: clean ( $ route -> method . ' ' . $ route -> uri ) ; $ this -> routes [ $ query ] = $ route ; } return $ this ; }
Mount router under prefix query

@param $prefix
@param RouterInterface $router
@param array $meta
@return $this
Mount router under prefix query