Skip to content
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 SettingsManager extendible #365

Merged
merged 1 commit into from
Oct 7, 2021
Merged

Conversation

maciekpaprocki
Copy link
Contributor

Would allow us to implement our own SettingsManager that supports replicas.

#348

Q A
Bug fix? no
New feature? no
BC breaks? no
Related Issue Fix #348
Need Doc update no

Describe your change

Making class final removes the option for us to use DI to replace it with our own settings manager.

Although the correct solution would be to implement interface and use that in DI, this will be braking change, while removing final shouldn't cause any issues and will make it extendible.

What problem is this fixing?

Lack of extendability of settings manager service, which makes it impossible to reimplement it by devs to fix replica issue.

Would allow us to implement our own SettingsManager that supports replicas. 

algolia#348
@maciekpaprocki maciekpaprocki changed the title Update SettingsManager.php Make SettingsManager extendible Sep 18, 2021
Copy link
Contributor

@DevinCodes DevinCodes left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution!

@DevinCodes DevinCodes merged commit 6ee5f64 into algolia:master Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing documentation on how to handle replicas
2 participants