Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DI] Turn private defs to non-public ones before removing passes #24468

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
Oct 10, 2017

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Oct 6, 2017

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

As spotted by @stof in #24465 (comment).

@@ -69,6 +69,8 @@ public function __construct()
new CheckCircularReferencesPass(),
new CheckReferenceValidityPass(),
new CheckArgumentsValidityPass(false),
), -100 => array(
Copy link
Member Author

Choose a reason for hiding this comment

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

Should be moved before removing

@nicolas-grekas nicolas-grekas changed the title [DI] Turn private defs to non-public ones later [DI] Turn private defs to non-public ones before removing passes Oct 7, 2017
@nicolas-grekas
Copy link
Member Author

PR ready

@@ -71,6 +71,12 @@ public function __construct()
new CheckArgumentsValidityPass(false),
));

$this->beforeRemovingPasses = array(
-100 => array(
new ResolvePrivatesPass(),
Copy link
Member

@stof stof Oct 9, 2017

Choose a reason for hiding this comment

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

This could even be the first removing pass instead.

Copy link
Member Author

Choose a reason for hiding this comment

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

which one is better? semantically, this is not a removing pass.
Is there any technical reason that would help decide?
otherwise, I think we should leave as is, isn't it?

Copy link
Member

Choose a reason for hiding this comment

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

Well, "optimization" passes are not really about optimizing either 😄

@fabpot
Copy link
Member

fabpot commented Oct 10, 2017

Thank you @nicolas-grekas.

@fabpot fabpot merged commit e5d0934 into symfony:3.4 Oct 10, 2017
fabpot added a commit that referenced this pull request Oct 10, 2017
…passes (nicolas-grekas)

This PR was merged into the 3.4 branch.

Discussion
----------

[DI] Turn private defs to non-public ones before removing passes

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

As spotted by @stof in #24465 (comment).

Commits
-------

e5d0934 [DI] Turn private defs to non-public ones before removing passes
@nicolas-grekas nicolas-grekas deleted the late-priv branch October 10, 2017 07:42
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