Skip to content

[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

Merged
merged 1 commit into from
May 22, 2017
Merged

[DI] Deprecate Container::initialized() for privates #22803

merged 1 commit into from
May 22, 2017

Conversation

ro0NL
Copy link
Contributor

@ro0NL ro0NL commented May 20, 2017

Q A
Branch? 3.4
Bug fix? yes-ish
New feature? yes
BC breaks? no
Deprecations? yes
Tests pass? yes
Fixed tickets #...
License MIT
Doc PR symfony/symfony-docs#...

See #22801 (comment)

Failing test seems unrelated.

@@ -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))));
Copy link
Member

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?

Copy link
Contributor Author

@ro0NL ro0NL May 21, 2017

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?

Copy link
Contributor Author

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.

@nicolas-grekas
Copy link
Member

Thank you @ro0NL.

@nicolas-grekas nicolas-grekas merged commit e0eb247 into symfony:3.4 May 22, 2017
nicolas-grekas added a commit that referenced this pull request May 22, 2017
…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
nicolas-grekas added a commit that referenced this pull request Jul 13, 2017
…: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
This was referenced Oct 18, 2017
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.

3 participants