-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Cleanup I*Config classes #12260
Comments
You need to split the configs based on their dependencies:
->
|
Drop of OC_Preferences: #13869 |
Drop of \OC\Preferences #13870 |
While reviewing #13938 I really wonder if IAppConfig shall die ❓ It's an isolated and easy to use object. |
Stuff that is only available in IAppConfig:
The rest is code duplication. We might want to add those methods to the IConfig interface and then kill it, that is if those methods are actually used in our code |
@Raydiation see #13938 ;) |
@DeepDiver1975 We can also handle it all in IAppConfig, but we shouldn't provide two ways of doing this. Either in IConfig OR in IAppConfig. |
The "or" is an exclusive one ;) Read it as an XOR ;) |
IMHO makes no sense to put the setting of app config values in one class and the deletion of values in another class :) |
I moved all missing methods over to IConfig and deprecated IAppConfig with #13938 ;) The question here is if we want to do it in this way, or if we want the AppConfig be a separate interface, but then I would remove the methods from IConfig. |
Separate interface makes only sense if we have the exact same signatures. That way we could keep backwards compatibility and let iconfig inherit from iappconfig. |
Latest cleanups went into 9.0 -> closing |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
So far we seem to have lots of classes and interfaces just to read the config, some legacy and some new.
We need to clean up this mess.
Here are a few:
@icewind1991 which ones do we want to keep and which ones should go ?
The text was updated successfully, but these errors were encountered: