Skip to content

[DI] Fix setting synthetic services on ContainerBuilder #19870

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
Sep 6, 2016

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Sep 6, 2016

Q A
Branch? 2.7
Bug fix? yes
Tests pass? yes
Fixed tickets #19858
License MIT

ContainerBuilder doesn't allow setting a service while it's frozen and has no corresponding definition.
Yet, the base Container doesn't have this limitation.

See linked issue for some context.

@fabpot
Copy link
Member

fabpot commented Sep 6, 2016

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 42244f2 into symfony:2.7 Sep 6, 2016
fabpot added a commit that referenced this pull request Sep 6, 2016
…icolas-grekas)

This PR was merged into the 2.7 branch.

Discussion
----------

[DI] Fix setting synthetic services on ContainerBuilder

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| Tests pass?   | yes
| Fixed tickets | #19858
| License       | MIT

`ContainerBuilder` doesn't allow setting a service while it's frozen and has no corresponding definition.
Yet, the base `Container` doesn't have this limitation.

See linked issue for some context.

Commits
-------

42244f2 [DI] Fix setting synthetic services on ContainerBuilder
This was referenced Sep 7, 2016
@nicolas-grekas nicolas-grekas deleted the di-fix branch September 9, 2016 08:41
@nicolas-grekas nicolas-grekas restored the di-fix branch September 9, 2016 10:14
@nicolas-grekas nicolas-grekas deleted the di-fix branch September 9, 2016 10:16
@fabpot fabpot mentioned this pull request Oct 3, 2016
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