mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-16 16:38:40 +00:00
Supporting session uri elements
This commit is contained in:
parent
10a343529f
commit
03a8474fea
|
|
@ -105,7 +105,7 @@ class UriFactory
|
||||||
*/
|
*/
|
||||||
public static function build(\string $uri, array $toMatch = [], \int $scheme = UriScheme::HTTP)
|
public static function build(\string $uri, array $toMatch = [], \int $scheme = UriScheme::HTTP)
|
||||||
{
|
{
|
||||||
$uri = preg_replace_callback('(\{[\/#\?@\.][a-zA-Z0-9]*\})', function ($match) use ($toMatch) {
|
$uri = preg_replace_callback('(\{[\/#\?@\.\$][a-zA-Z0-9]*\})', function ($match) use ($toMatch) {
|
||||||
$match = substr($match[0], 1, strlen($match[0]) - 2);
|
$match = substr($match[0], 1, strlen($match[0]) - 2);
|
||||||
|
|
||||||
return $toMatch[$match] ?? self::$uri[$match] ?? $match;
|
return $toMatch[$match] ?? self::$uri[$match] ?? $match;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user