src/Chiron/Routing/Router.php
public function pathFor(string $name, array $data = [], array $queryParams = []): string
    {
        $url = $this->relativePathFor($name, $data, $queryParams);

        if ($this->basePath) {
            $url = $this->basePath . $url;
        }

        return $url;
    }
public function pathFor(string $name, array $data = [], array $queryParams = []): string
    {
        $url = $this->relativePathFor($name, $data, $queryParams);

        if ($this->basePath) {
            $url = $this->basePath . $url;
        }

        return $url;
    }
public function pathFor ( string $ name , array $ data = [ ] , array $ queryParams = [ ] ) : string { $ url = $ this -> relativePathFor ( $ name , $ data , $ queryParams ) ; if ( $ this -> basePath ) { $ url = $ this -> basePath . $ url ; } return $ url ; }
Build the path for a named route including the base path.

@param string $name        Route name
@param array  $data        Named argument replacement data
@param array  $queryParams Optional query string parameters

@throws InvalidArgumentException If named route does not exist
@throws InvalidArgumentException If required data not provided

@return string
Build the path for a named route including the base path .