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

TASK: Revert "FEATURE: Easy injection of the active ServerRequest" #2309

Merged

Conversation

bwaidelich
Copy link
Member

This reverts #2144 which introduced a class ActiveServerRequestProvider
that allowed for easy injection of the active ServerRequest.

Background:

With the immutable nature of PSR-7 classes, the injected request might
not reflect the latest state and the behavior would depend on the
order in which the injection was executed.
With the HTTP middlewares chain ```Http\RequestHandler::getHttpRequest()``
will always contain the "current" request.

Related: #658

This reverts neos#2144 which introduced a class `ActiveServerRequestProvider`
that allowed for easy injection of the active `ServerRequest`.

Background:

With the immutable nature of PSR-7 classes, the injected request might
not reflect the latest state and the behavior would depend on the
order in which the injection was executed.
With the HTTP middlewares chain ```Http\RequestHandler::getHttpRequest()``
will always contain the "current" request.

Related: neos#658
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants