summaryrefslogtreecommitdiffstats
path: root/core/register_command.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-08-20 14:31:16 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-08-20 16:35:38 +0200
commit567e99abe29024742c168d85d3ce0f5030f7c7a2 (patch)
tree2853ac2c4a11aca6bb04a981e42ecf37deee2fa9 /core/register_command.php
parentb09620651cbb72e5a623d47ed409e949b114c7cf (diff)
downloadnextcloud-server-567e99abe29024742c168d85d3ce0f5030f7c7a2.tar.gz
nextcloud-server-567e99abe29024742c168d85d3ce0f5030f7c7a2.zip
Use the DI container also for the Install command registration
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/register_command.php')
-rw-r--r--core/register_command.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/register_command.php b/core/register_command.php
index c2a3f76b6c3..98f453bca5a 100644
--- a/core/register_command.php
+++ b/core/register_command.php
@@ -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));
}