10000 [RFC] Permit HttpFoundation\Request class override · Issue #7453 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[RFC] Permit HttpFoundation\Request class override #7453

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

Closed
jfsimon opened this issue Mar 22, 2013 · 0 comments
Closed

[RFC] Permit HttpFoundation\Request class override #7453

jfsimon opened this issue Mar 22, 2013 · 0 comments

Comments

@jfsimon
Copy link
Contributor
jfsimon commented Mar 22, 2013

For now it is impossible to override Request class as it is instantiated in few places.
To permit this override, we need to know on which class to call ::create() method.

This has already been done for sub-request in #7381 and #7390 (the sub requests use the same class as the master request).

This should now be done in following places:

What is the best way to let these classes know on which class they should call the ::create() method?

fabpot added a commit that referenced this issue Oct 1, 2013
…ss (fabpot)

This PR was merged into the master branch.

Discussion
----------

[HttpFoundation] added a way to override the Request class

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #7461, #7453
| License       | MIT
| Doc PR        | symfony/symfony-docs#3021

This is an alternative implementation for #7461.

I've also reverted #7381 and #7390 as these changes are not needed anymore.

Todo:

 - [ ] add some tests

Commits
-------

464439d [HttpFoundation] added a way to override the Request class
@fabpot fabpot closed this as completed Oct 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
0