Browse Source

chore: Revert using DI for IntegrityCodeChecker as it uses a special service name

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
tags/v29.0.0beta1
Côme Chilliet 4 months ago
parent
commit
aee189f6c7
No account linked to committer's email address
1 changed files with 12 additions and 4 deletions
  1. 12
    4
      core/register_command.php

+ 12
- 4
core/register_command.php View File

@@ -53,6 +53,7 @@ declare(strict_types=1);

use OC\Core\Command;
use OCP\IConfig;
use OCP\IURLGenerator;
use OCP\Server;
use Psr\Log\LoggerInterface;
use Stecman\Component\Symfony\Console\BashCompletion\CompletionCommand;
@@ -61,10 +62,17 @@ $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(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));
$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')));

$config = Server::get(IConfig::class);


Loading…
Cancel
Save