mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-16 11:58:41 +00:00
automatically define path indices
This commit is contained in:
parent
da72383619
commit
7572fc2d90
|
|
@ -126,6 +126,11 @@ final class UriFactory
|
|||
self::setQuery(':user', $uri->getUser());
|
||||
self::setQuery(':pass', $uri->getPass());
|
||||
|
||||
$data = $uri->getPathElements();
|
||||
foreach ($data as $key => $value) {
|
||||
self::setQuery('/' . $key, $value);
|
||||
}
|
||||
|
||||
$data = $uri->getQueryArray();
|
||||
foreach ($data as $key => $value) {
|
||||
self::setQuery('?' . $key, $value);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user