Skip to content

Revert "feature #20973 [DI] Add getter injection (nicolas-grekas)" #22158

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

Merged
merged 1 commit into from
Mar 25, 2017

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Mar 25, 2017

This reverts commit 2183f98, reversing
changes made to b465634.

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no (master only)
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

Let's remove getter injection, we now have enough alternative mechanisms to achieve almost the same results (e.g. ServiceSubscriberInterface, see #21708)., and I'm tired being called by names because of it.

The only use case in core is ControllerTrait, but this should be gone if #22157 is merged.

…as)"

This reverts commit 2183f98, reversing
changes made to b465634.
@nicolas-grekas nicolas-grekas force-pushed the revert-getter-injection branch from ac7f875 to 23fa3a0 Compare March 25, 2017 14:07
@linaori
Copy link
Contributor

linaori commented Mar 25, 2017

and I'm tired being called by names because of it.

People have no respect it seems.

@sstok
Copy link
Contributor

sstok commented Mar 25, 2017

On the bright side we now have much better alternatives 😃 Great work @nicolas-grekas !

@Koc
Copy link
Contributor

Koc commented Mar 25, 2017

Thank you for rewerting it. Generating proxy classes for services looks so strange

@fabpot
Copy link
Member

fabpot commented Mar 25, 2017

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 23fa3a0 into symfony:master Mar 25, 2017
fabpot added a commit that referenced this pull request Mar 25, 2017
…las-grekas)" (nicolas-grekas)

This PR was merged into the 3.3-dev branch.

Discussion
----------

Revert "feature #20973 [DI] Add getter injection (nicolas-grekas)"

This reverts commit 2183f98, reversing
changes made to b465634.

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no (master only)
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Let's remove getter injection, we now have enough alternative mechanisms to achieve almost the same results (e.g. `ServiceSubscriberInterface`, see #21708)., and I'm tired being called by names because of it.

The only use case in core is `ControllerTrait`, but this should be gone if #22157 is merged.

Commits
-------

23fa3a0 Revert "feature #20973 [DI] Add getter injection (nicolas-grekas)"
@nicolas-grekas nicolas-grekas deleted the revert-getter-injection branch March 25, 2017 19:54
@nicolas-grekas nicolas-grekas mentioned this pull request Mar 25, 2017
5 tasks
@fabpot fabpot mentioned this pull request May 1, 2017
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.

6 participants