From aee189f6c76ff1d3d9b58cb50b659cca47d693a5 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Tue, 30 Jan 2024 14:24:17 +0100 Subject: chore: Revert using DI for IntegrityCodeChecker as it uses a special service name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- core/register_command.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'core') 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); -- cgit v1.2.3