diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-06-06 11:09:24 +0200 |
---|---|---|
committer | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2023-07-06 15:21:22 +0200 |
commit | 14719110b9c795a95b23c2278168b9d6123b1a62 (patch) | |
tree | 9919ba8c849e3397e23e46ad9f1fdc3f951d3a7f /lib/private/Setup.php | |
parent | 5538a40029da60547798ae6f9e11179c4ee4a642 (diff) | |
download | nextcloud-server-14719110b9c795a95b23c2278168b9d6123b1a62.tar.gz nextcloud-server-14719110b9c795a95b23c2278168b9d6123b1a62.zip |
chore: Replace \OC::$server->query with \OCP\Server::get in /lib
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Setup.php')
-rw-r--r-- | lib/private/Setup.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/Setup.php b/lib/private/Setup.php index 3a2e7614dd9..d847125cc79 100644 --- a/lib/private/Setup.php +++ b/lib/private/Setup.php @@ -424,20 +424,20 @@ class Setup { unlink(\OC::$configDir.'/CAN_INSTALL'); } - $bootstrapCoordinator = \OC::$server->query(\OC\AppFramework\Bootstrap\Coordinator::class); + $bootstrapCoordinator = \OCP\Server::get(\OC\AppFramework\Bootstrap\Coordinator::class); $bootstrapCoordinator->runInitialRegistration(); // Create a session token for the newly created user // The token provider requires a working db, so it's not injected on setup /* @var $userSession User\Session */ $userSession = \OC::$server->getUserSession(); - $provider = \OC::$server->query(PublicKeyTokenProvider::class); + $provider = \OCP\Server::get(PublicKeyTokenProvider::class); $userSession->setTokenProvider($provider); $userSession->login($username, $password); $userSession->createSessionToken($request, $userSession->getUser()->getUID(), $username, $password); $session = $userSession->getSession(); - $session->set('last-password-confirm', \OC::$server->query(ITimeFactory::class)->getTime()); + $session->set('last-password-confirm', \OCP\Server::get(ITimeFactory::class)->getTime()); // Set email for admin if (!empty($options['adminemail'])) { @@ -506,10 +506,10 @@ class Setup { $config, \OC::$server->get(IniGetWrapper::class), \OC::$server->getL10N('lib'), - \OC::$server->query(Defaults::class), + \OCP\Server::get(Defaults::class), \OC::$server->get(LoggerInterface::class), \OC::$server->getSecureRandom(), - \OC::$server->query(Installer::class) + \OCP\Server::get(Installer::class) ); $htaccessContent = file_get_contents($setupHelper->pathToHtaccess()); |