-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Make Pool immutable #6735
Make Pool immutable #6735
Conversation
$pool->replaceArgument(1, $config['title']); | ||
$pool->replaceArgument(2, $config['title_logo']); | ||
$pool->replaceArgument(3, $config['options']); |
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.
You're replacing argument 1, 2 and 3 in both AddDependencyCallsCompilerPass.php
and here but with different values.
Shouldn't these lines be removed in favor of the setDeprecatedPropertiesForBC
call ?
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 left them intentionally just in case some weird BC break, just to be safe, but I guess they can be removed.
Could you please rebase your PR and fix merge conflicts? |
f9b0db5
to
38c93d0
Compare
Could you please rebase your PR and fix merge conflicts? |
38c93d0
to
9f0191e
Compare
Could you please rebase your PR and fix merge conflicts? |
Setters have been deprecated in favor of passing the needed arguments to the constructor.
9f0191e
to
23697a8
Compare
Subject
Ref: #6709
Pool
works as an Admin registry and its state is not needed to be changed once is instantiated, this PR will makePool
immutable in4.0
.Also
Pool
mocks used in tests have been replaced by instances ofPool
(the remaining ones are supposed to be removed in4.x
).I am targeting this branch, because these changes are BC.
Closes #6709.
Changelog