diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-01-30 12:14:52 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-01-30 16:07:02 +0100 |
commit | 0e1931754a4651ac4e5cfb8196b2a403aea39dd6 (patch) | |
tree | 79c9eeb86f6e1c0181b201c88673f74381a4e154 /core | |
parent | aee189f6c76ff1d3d9b58cb50b659cca47d693a5 (diff) | |
download | nextcloud-server-0e1931754a4651ac4e5cfb8196b2a403aea39dd6.tar.gz nextcloud-server-0e1931754a4651ac4e5cfb8196b2a403aea39dd6.zip |
chore: use DI for \OC\Repair
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/register_command.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/core/register_command.php b/core/register_command.php index 5af1704d653..71bd5b4b122 100644 --- a/core/register_command.php +++ b/core/register_command.php @@ -55,7 +55,6 @@ use OC\Core\Command; use OCP\IConfig; use OCP\IURLGenerator; use OCP\Server; -use Psr\Log\LoggerInterface; use Stecman\Component\Symfony\Console\BashCompletion\CompletionCommand; $application->add(new CompletionCommand()); @@ -149,12 +148,7 @@ if ($config->getSystemValueBool('installed', false)) { $application->add(Server::get(Command\Maintenance\UpdateTheme::class)); $application->add(Server::get(Command\Upgrade::class)); - $application->add(new Command\Maintenance\Repair( - new \OC\Repair([], Server::get(\OCP\EventDispatcher\IEventDispatcher::class), Server::get(LoggerInterface::class)), - \OC::$server->getConfig(), - Server::get(\OCP\EventDispatcher\IEventDispatcher::class), - \OC::$server->getAppManager() - )); + $application->add(Server::get(Command\Maintenance\Repair::class)); $application->add(Server::get(Command\Maintenance\RepairShareOwnership::class)); $application->add(Server::get(Command\Preview\Generate::class)); |