mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-13 02:28:41 +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;
|
||||
|
||||
/**
|
||||
* Uri fragments.
|
||||
*
|
||||
* @var array
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public array $fragments = [];
|
||||
|
||||
/**
|
||||
* Uri base.
|
||||
*
|
||||
|
|
@ -204,8 +212,9 @@ final class HttpUri implements UriInterface
|
|||
|
||||
$this->query = \array_change_key_case($this->query, \CASE_LOWER);
|
||||
|
||||
$this->fragment = $url['fragment'] ?? '';
|
||||
$this->base = $this->scheme . '://' . $this->host . ($this->port !== 80 ? ':' . $this->port : '') . $this->rootPath;
|
||||
$this->fragment = $url['fragment'] ?? '';
|
||||
$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