You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Split Adapter::getContainer() into getContainer + getContext
Before, getContainer() did double duty: returning the request-scoped
container when inside a coroutine, the global container otherwise. That
made request-side reads/writes look like global ones (\$server->getContainer()
inside match()), which obscured the scope split.
Now:
- getContainer() always returns the global singleton container.
- getContext() returns the per-request context container (coroutine-local
under Swoole, identical to the global one under FPM). Lookups still
fall through to the global container's parent chain, so getContext()
resolves singletons too.
Http internals updated to call getContext() for all per-request reads
and writes; the constructor's setup of \$this->container keeps using
getContainer() since it's grabbing the global.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments