mini\Dispatcher\HttpDispatcher::installRequestGlobalProxies()
Method
private
Signature
private function installRequestGlobalProxies(): void
Returns
void
Documentation
Install request global proxies for fiber-safe request handling
Replaces $_GET, $_POST, $_COOKIE with ArrayAccess proxies that delegate to the current ServerRequest. This enables:
- Fiber-safe concurrent request handling
- Zero code changes (existing $_GET['id'] works)
- Works with all SAPIs (FPM, Swoole, ReactPHP, etc.)
Called once during HttpDispatcher construction. Idempotent - safe to call multiple times.