Skip to content

[DI] Allow getting synthetic before compilation #19715

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

Closed
wants to merge 2 commits into from
Closed

[DI] Allow getting synthetic before compilation #19715

wants to merge 2 commits into from

Conversation

ro0NL
Copy link
Contributor

@ro0NL ro0NL commented Aug 23, 2016

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

Same as #19619 but i messed up git. So here's a clean PR.

After #19673

@trigger_error(sprintf('Calling %s() before compiling the container is deprecated for non-synthetic services since version 3.2 and will throw an exception in 4.0.', __METHOD__), E_USER_DEPRECATED);
}
if (null === $definition) {
return;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Considerable.

@nicolas-grekas
Copy link
Member

As far as I understand correctly, this is targeting the use case of fetching services while the container is being build. Does anyone really do this already?

@fabpot
Copy link
Member

fabpot commented Sep 6, 2016

... which nobody should do anyway. Phase one is describing the container, phase 2 is building/compiling, phase 3 is using.

@ro0NL
Copy link
Contributor Author

ro0NL commented Sep 7, 2016

👍 i considered it more from a convenience pov. But im fine if this is locked by design.

@ro0NL ro0NL closed this Sep 7, 2016
@ro0NL ro0NL deleted the di/containerbuilder-get branch May 23, 2017 19:12
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