-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] use the new request_stack service to get the Request object in the base Controller class #9553
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
Conversation
hhamon
commented
Nov 20, 2013
Q | A |
---|---|
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | ~ |
License | MIT |
Doc PR | ~ |
👍 |
Can you mark this method as deprecated in 2.4 (with a removal in 3.0?) And update the UPGRADE-3.0 file accordingly. I don't even know why we added this in the first place as you can easily get the request by type hinting it in any action method. Thanks. |
@fabpot done! |
Forgot to add a note in Ugrade file... I'm on it. |
Should I squash the three commits? |
* | ||
* @deprecated Deprecated since version 2.4, to be removed in 3.0. Ask | ||
* Symfony to inject the Request object into your controller | ||
* method instead by typing it in the method's signature. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
by typing
looks weird to me. by type hinting
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep type hinting is better.
…t object in the base Controller class
Thanks! I have fixed the UPGRADE file and the PHPDoc. Commits have been squashed together. |
…the Request object in the base Controller class (hhamon) This PR was merged into the master branch. Discussion ---------- [FrameworkBundle] use the new request_stack service to get the Request object in the base Controller class | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | ~ | License | MIT | Doc PR | ~ Commits ------- 2e07338 [FrameworkBundle] use the new request_stack service to get the Request object in the base Controller class