-
Notifications
You must be signed in to change notification settings - Fork 302
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
Use of 'final' and 'private' in Psr18Adapter #795
Comments
See https://github.com/solariumphp/solarium/pull/754/files#r399572624 What is the reason for "final" (or the advantage)? @dmaicher So we should not even encourage people to extend it. They should use composition if they need to customize stuff. Or what do you think? @mkalkbrenner |
I accepted the proposal for a new implementation in 5.2.0 but I agree that we could be less restrictive for 6.0.0. |
I have missed that conversation about A quick search of the code yields no other uses of |
@wickedOne could we do a quick poll here? |
I am not a fan of inheritance and prefer composition instead, so for me, |
I'm not opposed to using Or if we make some classes |
i'm with @localheinz and @thomascorthals on this one and would prefer our own adapters to be of course that would mean we have to alter the remark in the customisation documentation |
I would keep it private and final 😋 Reasoning see #754 (comment) |
I changed the docs in #803 |
Should I go ahead and turn around PR #796 to make all three adapters |
I think we should not change the existing adapters. |
Since @mkalkbrenner already changed the docs and we're not changing the implementation, I'm closing this. :) |
Is there any reason we can't use just
class
andprotected
for member variables and methods?solarium/src/Core/Client/Adapter/Psr18Adapter.php
Line 16 in 559f8a8
The use of
final
andprivate
contradicts our customisation philosophy.solarium/docs/customizing-solarium.md
Line 8 in 559f8a8
solarium/docs/customizing-solarium.md
Line 299 in 559f8a8
The text was updated successfully, but these errors were encountered: