Skip to content

[DI] Fix resetting private services #23645

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
Jul 25, 2017
Merged

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

As spotted by @stof.

@nicolas-grekas nicolas-grekas force-pushed the di-reset branch 2 times, most recently from 1c0ccaa to 652494f Compare July 24, 2017 19:50
@@ -69,7 +70,7 @@ public function getProxyFactoryCode(Definition $definition, $id, $methodName = n
$instantiation = 'return';

if ($definition->isShared()) {
$instantiation .= " \$this->services['$id'] =";
$instantiation .= sprintf(' $this->%s[\'%s\'] =', $definition->isPublic() || !method_exists(ContainerBuilder::class, 'addClassResource') ? 'services' : 'privates', $id);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we also missed updating ProxyDumper, now fixed

@ogizanagi ogizanagi merged commit 320cf40 into symfony:master Jul 25, 2017
ogizanagi added a commit that referenced this pull request Jul 25, 2017
This PR was merged into the 4.0-dev branch.

Discussion
----------

[DI] Fix resetting private services

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

As spotted by @stof.

Commits
-------

320cf40 [DI] Fix resetting private services
@nicolas-grekas nicolas-grekas deleted the di-reset branch July 25, 2017 11:45
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