-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Refactor OC\Server::getAppConfig
#40112
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
Refactor OC\Server::getAppConfig
#40112
Conversation
9304ae2 to
f3ae7a8
Compare
Signed-off-by: Andrew Summers <[email protected]>
f3ae7a8 to
ffb4889
Compare
| $application->add(new OC\Core\Command\Config\App\SetConfig(\OC::$server->getConfig())); | ||
| $application->add(new OC\Core\Command\Config\Import(\OC::$server->getConfig())); | ||
| $application->add(new OC\Core\Command\Config\ListConfigs(\OC::$server->getSystemConfig(), \OC::$server->getAppConfig())); | ||
| $application->add(new OC\Core\Command\Config\ListConfigs(\OC::$server->getSystemConfig(), \OC::$server->get(IAppConfig::class))); |
Check notice
Code scanning / Psalm
DeprecatedMethod
|
conflicts |
|
@summersab I closed a few of your Refactor PRs. |
This PR refactors the deprecated method
OC\Server::getAppConfigand replaces it withOC\Server::get(\OCP\IAppConfig::class)throughout the entire NC codebase (excluding./appsand./3rdparty).Additionally, where necessary, the
\OCP\IAppConfigclass is imported via theusedirective.