diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-01-30 14:24:17 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-01-30 16:03:18 +0100 |
commit | aee189f6c76ff1d3d9b58cb50b659cca47d693a5 (patch) | |
tree | b3501def7104b1f1d062171fb2800f03f3c3f2e9 /core | |
parent | 46f729b63b8165755f1e9a2f153c6679a7f241fc (diff) | |
download | nextcloud-server-aee189f6c76ff1d3d9b58cb50b659cca47d693a5.tar.gz nextcloud-server-aee189f6c76ff1d3d9b58cb50b659cca47d693a5.zip |
chore: Revert using DI for IntegrityCodeChecker as it uses a special service name
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/register_command.php | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/core/register_command.php b/core/register_command.php index 9dde2bbc223..5af1704d653 100644 --- a/core/register_command.php +++ b/core/register_command.php @@ -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); |