Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged

Conversation

@fabpot
Copy link
Member

QA
Branch?5.4
Bug fix?no
New feature?no
Deprecations?yes
TicketsRefs#42418
LicenseMIT
Doc PRn/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.

OskarStark, jschaedl, ro0NL, derrabus, ismail1432, zairigimad, wouterj, t-richard, juuuuuu, QuentG, and 4 more reacted with thumbs up emojixserrat and TomasVotruba reacted with rocket emoji
Copy link
Contributor

@OskarStarkOskarStark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Make sense 👍

TomasVotruba reacted with thumbs up emoji
Copy link
Contributor

@ro0NLro0NL left a comment
edited
Loading

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 :')

@nicolas-grekasnicolas-grekas added this to the5.4 milestoneAug 8, 2021
@wouterj
Copy link
Member

Makes sense, althoughgetDoctrine() 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.

OskarStark, liorchamla, and TomasVotruba reacted with thumbs up emoji

@zairigimad
Copy link
Contributor

zairigimad commentedAug 8, 2021
edited
Loading

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?

@fabpotfabpotforce-pushed theabstract-controller-clarification branch from14d7f9c tob182498CompareAugust 8, 2021 11:06
Copy link
Member

@chalasrchalasr left a comment
edited
Loading

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.

Copy link
Member

@jderussejderusse left a 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

@fabpotfabpotforce-pushed theabstract-controller-clarification branch fromb182498 to832b78eCompareAugust 9, 2021 08:28
@fabpot
Copy link
MemberAuthor

I suggest to trigger a deprecation notice fromAbstractController::get() when the passed id is one ofmessage_bus,messenger.default_bus ordoctrine.

I will deprecateget andhas in another PR as I don't think these methods make sense as they give access to a limited (and arbitrary?) set of services.

ro0NL reacted with rocket emoji

@fabpotfabpotforce-pushed theabstract-controller-clarification branch from832b78e to42f2f92CompareAugust 9, 2021 08:34
@fabpotfabpotforce-pushed theabstract-controller-clarification branch from42f2f92 tof3a6721CompareAugust 9, 2021 08:35
@fabpotfabpot merged commit22ce8f6 intosymfony:5.4Aug 9, 2021
@fabpotfabpot deleted the abstract-controller-clarification branchAugust 9, 2021 08:37
@fabpot
Copy link
MemberAuthor

Follow-up:#42442

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@OskarStarkOskarStarkOskarStark approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@jderussejderussejderusse approved these changes

@derrabusderrabusderrabus approved these changes

@chalasrchalasrchalasr approved these changes

+2 more reviewers

@ro0NLro0NLro0NL left review comments

@jschaedljschaedljschaedl approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

11 participants

@fabpot@wouterj@zairigimad@nicolas-grekas@jderusse@OskarStark@ro0NL@derrabus@jschaedl@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp