-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DI] Deprecate Container::initialized() for privates #22803
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
@@ -403,7 +407,7 @@ public function getServiceIds() | |||
} | |||
$ids[] = 'service_container'; | |||
|
|||
return array_unique(array_merge($ids, array_keys($this->methodMap), array_keys($this->services))); | |||
return array_values(array_unique(array_merge($ids, array_keys($this->methodMap), array_keys($this->services)))); |
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.
what is this for? related?
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.
i noted with https://github.com/symfony/symfony/pull/22801/files#diff-8aeba2b88d0347062017ee160a6beb49R141 keys are preserved; i want to do a clean assertion against getServiceIds
, not relying on array_values
or indexes in tests.
But can be left out yes; i just used this PR to make the change as of 3.4 :)
Do you want a separate PR or rely on the current behavior?
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.
Reverted. not yet an issue in 3.4.
Thank you @ro0NL. |
…ro0NL) This PR was merged into the 3.4 branch. Discussion ---------- [DI] Deprecate Container::initialized() for privates | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes-ish | New feature? | yes | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features--> See #22801 (comment) Failing test seems unrelated. Commits ------- e0eb247 [DI] Deprecate Container::initialized() for privates
…:initialized (ro0NL) This PR was merged into the 3.4 branch. Discussion ---------- [DI] Check privates before resolving alias in Container::initialized | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no, fixes an existing one | Tests pass? | yes, we dont test this behavior :( | Fixed tickets | #... <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features--> Continuation of #22803, so it's consistent with logic in `has()` etc. Commits ------- c4b6066 [DI] Check privates before resolving alias in Container::initialized
See #22801 (comment)
Failing test seems unrelated.