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

Clarify goals of AbstractController #42422

Open
wants to merge 1 commit into
base: 5.4
Choose a base branch
from

Conversation

@fabpot
Copy link
Member

@fabpot fabpot commented Aug 8, 2021

Q A
Branch? 5.4
Bug fix? no
New feature? no
Deprecations? yes
Tickets Refs #42418
License MIT
Doc PR n/a

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.

Copy link
Contributor

@OskarStark OskarStark left a comment

Make sense 👍

@@ -50,7 +50,7 @@
use Twig\Environment;

/**
* Provides common features needed in controllers.
* Provides shortcuts for HTTP related-features in controllers.

This comment has been minimized.

@OskarStark

OskarStark Aug 8, 2021
Contributor

Suggested change
* Provides shortcuts for HTTP related-features in controllers.
* Provides shortcuts for HTTP-related features in controllers.
Copy link
Contributor

@ro0NL ro0NL left a comment

i'll assume the local service refs (eg. getSubscribedServices) remain available in a protected container like till forever :)

UPGRADE file should be updated :')

@nicolas-grekas nicolas-grekas added this to the 5.4 milestone Aug 8, 2021
@wouterj
Copy link
Member

@wouterj wouterj commented Aug 8, 2021

Makes sense, although getDoctrine() has been there for so long that we have to update quite some docs I think. Also a friendly ping to @weaverryan as I think this will impact SymfonyCasts as well.

@zairigimad
Copy link
Contributor

@zairigimad zairigimad commented Aug 8, 2021

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?

@fabpot fabpot force-pushed the fabpot:abstract-controller-clarification branch from 14d7f9c to b182498 Aug 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

9 participants