Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DependencyInjection] Fixed incorrect report for private services if required service does not exist #39151

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

Conversation

fu22ybear
Copy link
Contributor

…does not exist

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #29359
License MIT
Doc PR no

looks like CheckExceptionOnInvalidReferenceBehaviorPass can be moved to beforeRemovingPasses section without any consequences. this solves the problem and all tests still pass

@carsonbot carsonbot added this to the 4.4 milestone Nov 23, 2020
@carsonbot carsonbot changed the title [DI] fixed incorrect report for private services if required service … [DependencyInjection] [DI] fixed incorrect report for private services if required service … Nov 23, 2020
@fu22ybear fu22ybear force-pushed the issue-29359-incorrect-service-id-for-non-existent branch from f962ddd to c86c6e1 Compare November 23, 2020 17:57
@jderusse jderusse changed the title [DependencyInjection] [DI] fixed incorrect report for private services if required service … [DependencyInjection] Fixed incorrect report for private services if required service does not exist Nov 23, 2020
@fu22ybear fu22ybear force-pushed the issue-29359-incorrect-service-id-for-non-existent branch from c86c6e1 to b07d72c Compare November 29, 2020 08:13
@fu22ybear fu22ybear force-pushed the issue-29359-incorrect-service-id-for-non-existent branch from b07d72c to e5491ab Compare November 29, 2020 11:36
@fu22ybear fu22ybear force-pushed the issue-29359-incorrect-service-id-for-non-existent branch from e5491ab to 0acbc9e Compare November 29, 2020 11:51
@fu22ybear fu22ybear force-pushed the issue-29359-incorrect-service-id-for-non-existent branch from 0acbc9e to 1461688 Compare November 29, 2020 13:14
@derrabus derrabus force-pushed the issue-29359-incorrect-service-id-for-non-existent branch from 1461688 to 39bd05c Compare December 3, 2020 01:30
@derrabus
Copy link
Member

derrabus commented Dec 3, 2020

Thank you @Islam93.

@derrabus derrabus merged commit fbd67c8 into symfony:4.4 Dec 3, 2020
This was referenced Dec 18, 2020
nicolas-grekas added a commit that referenced this pull request Feb 22, 2024
…ng service locators (nicolas-grekas)

This PR was merged into the 5.4 branch.

Discussion
----------

[DependencyInjection] Fix computing error messages involving service locators

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? |no
| Issues        | -
| License       | MIT

I just realized that #39151 broke the logic in CheckExceptionOnInvalidReferenceBehaviorPass because it relied on inlining pass doing its job. This makes the pass work with and without inlining.

Commits
-------

ca7afaf [DependencyInjection] Fix computing error messages involving service locators
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.

5 participants