Lines Matching refs:rel
59 * @param UriInterface $rel Relative URI
65 public static function resolve(UriInterface $base, UriInterface $rel) argument
67 if ((string) $rel === '') {
72 if ($rel->getScheme() != '') {
73 return $rel->withPath(self::removeDotSegments($rel->getPath()));
76 if ($rel->getAuthority() != '') {
77 $targetAuthority = $rel->getAuthority();
78 $targetPath = self::removeDotSegments($rel->getPath());
79 $targetQuery = $rel->getQuery();
82 if ($rel->getPath() === '') {
84 $targetQuery = $rel->getQuery() != '' ? $rel->getQuery() : $base->getQuery();
86 if ($rel->getPath()[0] === '/') {
87 $targetPath = $rel->getPath();
90 $targetPath = '/' . $rel->getPath();
94 $targetPath = $rel->getPath();
96 … $targetPath = substr($base->getPath(), 0, $lastSlashPos + 1) . $rel->getPath();
101 $targetQuery = $rel->getQuery();
110 $rel->getFragment()