Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.0] integrate_parse_route → integrate_route_parsers #8475

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Sources/QueryString.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ public static function cleanRequest(): void
}
}

// Let mods add new route parsers to self::$route_parsers.
IntegrationHook::call('integrate_route_parsers');

// Are we using routing (a.k.a. queryless/friendly/pretty URLs)?
$_GET = self::parseRoute($_SERVER['PATH_INFO'] ?? '', $_GET);

Expand Down Expand Up @@ -651,10 +654,6 @@ public static function buildRoute(array|string $params): string
*/
public static function parseRoute(string $path, array $params): array
{
// Give mods a chance to parse the route before we do anything to it.
// This hook can also be used add new route parsers to self::$route_parsers.
IntegrationHook::call('integrate_parse_route', [&$path, &$params]);

if (!str_starts_with($path, '/')) {
return $params;
}
Expand Down
Loading