Skip to content

Commit 650cad5

Browse files
committed
fixup! Remove deprecated methods Util::writeLog and DIContainer::log
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 648a890 commit 650cad5

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

lib/base.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -988,16 +988,17 @@ public static function handleRequest(): void {
988988
// Check if Nextcloud is installed or in maintenance (update) mode
989989
if (!$systemConfig->getValue('installed', false)) {
990990
\OC::$server->getSession()->clear();
991+
$logger = Server::get(\Psr\Log\LoggerInterface::class);
991992
$setupHelper = new OC\Setup(
992993
$systemConfig,
993994
Server::get(\bantu\IniGetWrapper\IniGetWrapper::class),
994995
Server::get(\OCP\L10N\IFactory::class)->get('lib'),
995996
Server::get(\OCP\Defaults::class),
996-
Server::get(\Psr\Log\LoggerInterface::class),
997+
$logger,
997998
Server::get(\OCP\Security\ISecureRandom::class),
998999
Server::get(\OC\Installer::class)
9991000
);
1000-
$controller = new OC\Core\Controller\SetupController($setupHelper);
1001+
$controller = new OC\Core\Controller\SetupController($setupHelper, $logger);
10011002
$controller->run($_POST);
10021003
exit();
10031004
}

lib/private/AppFramework/DependencyInjection/DIContainer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
use OCP\IDBConnection;
6666
use OCP\IInitialStateService;
6767
use OCP\IL10N;
68+
use OCP\ILogger;
6869
use OCP\INavigationManager;
6970
use OCP\IRequest;
7071
use OCP\IServerContainer;

0 commit comments

Comments
 (0)