Skip to content

[DI] fix perf issue with lazy autowire error messages #32715

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 26, 2019

Conversation

nicolas-grekas
Copy link
Member

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

See linked issue.

@nicolas-grekas
Copy link
Member Author

Benefit confirmed in #32711, ready.

$container->setAliases($this->container->getAliases());
$container->setDefinitions($this->container->getDefinitions());
$container->setResourceTracking(false);
if (null === $this->typesClone->container) {
Copy link
Member

Choose a reason for hiding this comment

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

the container property should be declared as a private property of the class. We don't want to make it a dynamic public property.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

ah, I missed the fact it was an inherited property. All good then.

@Tobion
Copy link
Contributor

Tobion commented Jul 26, 2019

Thank you @nicolas-grekas.

@Tobion Tobion merged commit 3c3bda5 into symfony:4.3 Jul 26, 2019
Tobion added a commit that referenced this pull request Jul 26, 2019
…olas-grekas)

This PR was merged into the 4.3 branch.

Discussion
----------

[DI] fix perf issue with lazy autowire error messages

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

See linked issue.

Commits
-------

3c3bda5 [DI] fix perf issue with lazy autowire error messages
@fabpot fabpot mentioned this pull request Jul 28, 2019
@nicolas-grekas nicolas-grekas deleted the di-autow-perf branch July 31, 2019 15:52
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