Skip to content

[DI] deprecate support for non-object services #33137

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
Aug 13, 2019

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 4.4
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #32411
License MIT
Doc PR -

Follows #32432 /cc @derrabus
Prepares for adding the ?object return-type on master.

@nicolas-grekas
Copy link
Member Author

I didn't update the changelog because I think this is not common enough to require one. Also, this doesn't prevent private scalar services, because those don't get through the patched methods. That's why this won't break places where we do define scalar services.

@derrabus
Copy link
Member

Can we also deprecate scalars in Container::set() and ContainerBuilder::set()?

@nicolas-grekas
Copy link
Member Author

Here you are :)

@nicolas-grekas nicolas-grekas merged commit 7c01c4c into symfony:4.4 Aug 13, 2019
nicolas-grekas added a commit that referenced this pull request Aug 13, 2019
…s-grekas)

This PR was merged into the 4.4 branch.

Discussion
----------

[DI] deprecate support for non-object services

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #32411
| License       | MIT
| Doc PR        | -

Follows #32432 /cc @derrabus
Prepares for adding the `?object` return-type on master.

Commits
-------

7c01c4c [DI] deprecate support for non-object services
@nicolas-grekas nicolas-grekas deleted the di-inline-no-scalar branch August 13, 2019 13:45
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.4 Oct 27, 2019
This was referenced Nov 12, 2019
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.

3 participants