aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-01-30 16:31:05 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-01-30 16:31:05 +0100
commitceff16bbf917885e63cf4742e9ba961bf4f114d4 (patch)
tree8d0def1712b3f9a97d6c847fcad34e5222d860cf /core
parent0e1931754a4651ac4e5cfb8196b2a403aea39dd6 (diff)
downloadnextcloud-server-ceff16bbf917885e63cf4742e9ba961bf4f114d4.tar.gz
nextcloud-server-ceff16bbf917885e63cf4742e9ba961bf4f114d4.zip
chore: Fix DI for integrity checker before installation
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core')
-rw-r--r--core/register_command.php16
1 files changed, 4 insertions, 12 deletions
diff --git a/core/register_command.php b/core/register_command.php
index 71bd5b4b122..ac585214906 100644
--- a/core/register_command.php
+++ b/core/register_command.php
@@ -53,7 +53,6 @@ declare(strict_types=1);
use OC\Core\Command;
use OCP\IConfig;
-use OCP\IURLGenerator;
use OCP\Server;
use Stecman\Component\Symfony\Console\BashCompletion\CompletionCommand;
@@ -61,17 +60,10 @@ $application->add(new CompletionCommand());
$application->add(Server::get(Command\Status::class));
$application->add(Server::get(Command\Check::class));
$application->add(Server::get(Command\L10n\CreateJs::class));
-$application->add(new \OC\Core\Command\Integrity\SignApp(
- Server::get('IntegrityCodeChecker'),
- new \OC\IntegrityCheck\Helpers\FileAccessHelper(),
- Server::get(IURLGenerator::class)
-));
-$application->add(new \OC\Core\Command\Integrity\SignCore(
- Server::get('IntegrityCodeChecker'),
- new \OC\IntegrityCheck\Helpers\FileAccessHelper()
-));
-$application->add(new \OC\Core\Command\Integrity\CheckApp(Server::get('IntegrityCodeChecker')));
-$application->add(new \OC\Core\Command\Integrity\CheckCore(Server::get('IntegrityCodeChecker')));
+$application->add(Server::get(Command\Integrity\SignApp::class));
+$application->add(Server::get(Command\Integrity\SignCore::class));
+$application->add(Server::get(Command\Integrity\CheckApp::class));
+$application->add(Server::get(Command\Integrity\CheckCore::class));
$config = Server::get(IConfig::class);