-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
Refactor OC\Server::getAppConfig
#40112
Refactor OC\Server::getAppConfig
#40112
Conversation
9304ae2
to
f3ae7a8
Compare
Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
f3ae7a8
to
ffb4889
Compare
@@ -98,7 +100,7 @@ | |||
$application->add(new OC\Core\Command\Config\App\GetConfig(\OC::$server->getConfig())); | |||
$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::getAppConfig
and replaces it withOC\Server::get(\OCP\IAppConfig::class)
throughout the entire NC codebase (excluding./apps
and./3rdparty
).Additionally, where necessary, the
\OCP\IAppConfig
class is imported via theuse
directive.