Use the DI container also for the Install command registration

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2020-08-20 14:31:16 +02:00
parent b09620651c
commit 567e99abe2
No known key found for this signature in database
GPG key ID: FE03C3A163FEDE68

View 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));
}