Skip to content

[FrameworkBundle] resolve service locators in debug:* commands #34755

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
Dec 6, 2019

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 3.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #34470
License MIT
Doc PR -

Because of the way ServiceClosureArgument are dumped, we need to resolve locators after loading the xml dump of the container:
https://github.com/symfony/symfony/blob/3.4/src/Symfony/Component/DependencyInjection/Dumper/XmlDumper.php#L273

@chalasr
Copy link
Member

chalasr commented Dec 2, 2019

Adding a doc comment or updating the command test case would be nice though :)

@nicolas-grekas
Copy link
Member Author

Adding a doc comment or updating the command test case would be nice though :)

This command has no test case, I'd prefer moving on here, this is a debug tool, nothing critical.

@chalasr
Copy link
Member

chalasr commented Dec 6, 2019

Thank you @nicolas-grekas.

chalasr added a commit that referenced this pull request Dec 6, 2019
…mmands (nicolas-grekas)

This PR was merged into the 3.4 branch.

Discussion
----------

[FrameworkBundle] resolve service locators in `debug:*` commands

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #34470
| License       | MIT
| Doc PR        | -

Because of the way ServiceClosureArgument are dumped, we need to resolve locators after loading the xml dump of the container:
https://github.com/symfony/symfony/blob/3.4/src/Symfony/Component/DependencyInjection/Dumper/XmlDumper.php#L273

Commits
-------

820da66 [FrameworkBundle] resolve service locators in `debug:*` commands
@chalasr chalasr merged commit 820da66 into symfony:3.4 Dec 6, 2019
@nicolas-grekas nicolas-grekas deleted the fwb-load-locators branch December 13, 2019 09:45
This was referenced Dec 19, 2019
This was referenced Jan 21, 2020
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.

4 participants