8000 [Lock] Split "StoreInterface" into multiple interfaces with less responsability by Simperfit · Pull Request #32198 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Lock] Split "StoreInterface" into multiple interfaces with less responsability #32198

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

Conversation

Simperfit
Copy link
Contributor
@Simperfit Simperfit commented Jun 26, 2019
Q A
Branch? 4.4
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? yes
Tests pass? yes
Fixed tickets Contribute to #28694
License MIT
Doc PR TODO

We are removing the StoreInterface in order to split into multiple interface, it will help reduce de responsability of the StoreInterface.

Firstly, since not all stores needs to have all the methods of the StoreInterface, we can split this like this in order to limit the methods that are needed for each store.

Secondly, we add supportsX methods in order to avoid throwing exception when a store does not supports a feature it's easier an instance of the special interface or not, and it can return true/false on the support method.

Really big thanks to @jderusse for working with me on this, 1-2 hours of talking together, and another 1-2 hours of pre-review :). now giving it to the whole community !

some time has been sponsored by @izisolutions

@Simperfit Simperfit changed the title [Lock] Split "StoreInterface" into multiple interfaces with less resp… [Lock] Split "StoreInterface" into multiple interfaces with less responsability Jun 26, 2019
@Simperfit Simperfit force-pushed the feature/split-lock-store-interface-in-less-reponsability-interfaces branch from 82d8e0e to 5f1ad1f Compare June 26, 2019 15:53