]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use the DI container also for the Install command registration
authorMorris Jobke <hey@morrisjobke.de>
Thu, 20 Aug 2020 12:31:16 +0000 (14:31 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 20 Aug 2020 14:35:38 +0000 (16:35 +0200)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
core/register_command.php

index c2a3f76b6c32f412efb380b576f522362dbcdf4e..98f453bca5a69875fde69a1fe67674d002d3d43a 100644 (file)
@@ -179,5 +179,5 @@ if (\OC::$server->getConfig()->getSystemValue('installed', false)) {
        $application->add(new OC\Core\Command\Security\RemoveCertificate(\OC::$server->getCertificateManager(null)));
        $application->add(new OC\Core\Command\Security\ResetBruteforceAttempts(\OC::$server->getBruteForceThrottler()));
 } else {
-       $application->add(new OC\Core\Command\Maintenance\Install(\OC::$server->getSystemConfig()));
+       $application->add(\OC::$server->get(\OC\Core\Command\Maintenance\Install::class));
 }