automatically define path indices

This commit is contained in:
Dennis Eichhorn 2019-06-07 21:18:29 +02:00
parent da72383619
commit 7572fc2d90

View File

@ -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);