mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-04 19:58:39 +00:00
add multiple fragment support
This commit is contained in:
parent
7981adf359
commit
91fde08f52
|
|
@ -134,6 +134,14 @@ final class HttpUri implements UriInterface
|
||||||
*/
|
*/
|
||||||
public string $fragment;
|
public string $fragment;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Uri fragments.
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public array $fragments = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Uri base.
|
* Uri base.
|
||||||
*
|
*
|
||||||
|
|
@ -204,8 +212,9 @@ final class HttpUri implements UriInterface
|
||||||
|
|
||||||
$this->query = \array_change_key_case($this->query, \CASE_LOWER);
|
$this->query = \array_change_key_case($this->query, \CASE_LOWER);
|
||||||
|
|
||||||
$this->fragment = $url['fragment'] ?? '';
|
$this->fragment = $url['fragment'] ?? '';
|
||||||
$this->base = $this->scheme . '://' . $this->host . ($this->port !== 80 ? ':' . $this->port : '') . $this->rootPath;
|
$this->fragments = \explode(',', $url['fragment'] ?? '');
|
||||||
|
$this->base = $this->scheme . '://' . $this->host . ($this->port !== 80 ? ':' . $this->port : '') . $this->rootPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user