Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Clarify goals of AbstractController#42422
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
OskarStark left a comment
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.
Make sense 👍
src/Symfony/Bundle/FrameworkBundle/Controller/AbstractController.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
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.
i'll assume the local service refs (eg. getSubscribedServices) remain available in a protected container like till forever :)
UPGRADE file should be updated :')
Uh oh!
There was an error while loading.Please reload this page.
wouterj commentedAug 8, 2021
Makes sense, although |
zairigimad commentedAug 8, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Makes sense, but Messenger is one of the recently added components in the AbstractControllers, I believe it's not only HTTP related feature, should this part be flagged as deprecated and moved out from the AbstractController? |
14d7f9c tob182498Compare
chalasr left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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.
I suggest to trigger a deprecation notice fromAbstractController::get() when the passed id is one ofmessage_bus,messenger.default_bus ordoctrine.
src/Symfony/Bundle/FrameworkBundle/Controller/AbstractController.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/FrameworkBundle/Controller/AbstractController.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
jderusse left a comment
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.
👍 for cleaning this class
b182498 to832b78eComparefabpot commentedAug 9, 2021
I will deprecate |
832b78e to42f2f92Compare42f2f92 tof3a6721Comparefabpot commentedAug 9, 2021
Follow-up:#42442 |
AbstractController should only be about HTTP-related features and we should not encourage developers to put some other logic in controllers. See#42418 for a discussion about it.