Skip to content

Conversation

javiereguiluz
Copy link
Member

Fixes #15605.

@javiereguiluz javiereguiluz added this to the 5.4 milestone Aug 9, 2021
@javiereguiluz javiereguiluz requested a review from xabbuh as a code owner August 9, 2021 11:01
javiereguiluz added a commit to javiereguiluz/symfony-docs that referenced this pull request Aug 9, 2021
…ctController (javiereguiluz)

This PR was merged into the 5.4 branch.

Discussion
----------

Deprecate the get() and has() shortcuts of AbstractController

Fixes symfony#15606.

We've been promoting service injection for long, so there weren't many `get()` occurrences to fix and I couldn't find any `has()` occurrence from AbstractController.

This PR leaves a `get()` usage on purpose in the `doctrine.rst` article because it was removed in another PR: symfony#15607.

Commits
-------

901535c Deprecate the get() and has() shortcuts of AbstractController
@javiereguiluz javiereguiluz merged commit e316093 into symfony:5.4 Aug 10, 2021
@javiereguiluz javiereguiluz deleted the fix_15605 branch August 10, 2021 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clarify goals of AbstractController
2 participants