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

[FrameworkBundle] use the new request_stack service to get the Request object in the base Controller class #9553

Merged
merged 1 commit into from Nov 21, 2013

Conversation

hhamon
Copy link
Contributor

@hhamon 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 ~

@stloyd
Copy link
Contributor

stloyd commented Nov 20, 2013

👍

@fabpot
Copy link
Member

fabpot commented Nov 21, 2013

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.

@hhamon
Copy link
Contributor Author

hhamon commented Nov 21, 2013

@fabpot done!

@hhamon
Copy link
Contributor Author

hhamon commented Nov 21, 2013

Forgot to add a note in Ugrade file... I'm on it.

@hhamon
Copy link
Contributor Author

hhamon commented Nov 21, 2013

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.
Copy link
Member

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?

Copy link
Contributor Author

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.

@hhamon
Copy link
Contributor Author

hhamon commented Nov 21, 2013

Thanks! I have fixed the UPGRADE file and the PHPDoc. Commits have been squashed together.

fabpot added a commit that referenced this pull request Nov 21, 2013
…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
@fabpot fabpot merged commit 2e07338 into symfony:master Nov 21, 2013
@hhamon hhamon deleted the base_controller_update branch November 21, 2013 17:57
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.

None yet

4 participants