-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DependencyInjection] Sort services in service locator according to priority #42532
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
BoShurik
commented
Aug 13, 2021
•
edited by nicolas-grekas
Loading
edited by nicolas-grekas
Q | A |
---|---|
Branch? | 5.4 |
Bug fix? | no |
New feature? | yes |
Deprecations? | no |
Tickets | Fix #42506 |
License | MIT |
Doc PR | - |
@@ -102,7 +102,6 @@ public static function register(ContainerBuilder $container, array $refMap, stri | |||
} | |||
$refMap[$id] = new ServiceClosureArgument($ref); | |||
} | |||
ksort($refMap); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I understand sort here is for easy testing
Hey! I think @fancyweb has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
Can you please add a test case that covers the new behavior? |
Oh, and please have a look at failing test cases. |
Friendly ping @BoShurik |
@nicolas-grekas yes, it's in my todo-list for this week |
@nicolas-grekas I am not sure how to fix |
no need to exclude: we should patch 4.4 instead to relax the test case, which is too strict apparently |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(but please send a PR for 4.4 to relax the tests)
Thank you @BoShurik. |
… according to priority (BoShurik) This PR was merged into the 5.4 branch. Discussion ---------- [DependencyInjection] Sort services in service locator according to priority | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Fix #42506 | License | MIT | Doc PR | - Commits ------- c67c2df Sort services in service locator according to priority