From 44eb700713709f8286e64687c9f3b12fe97d4b43 Mon Sep 17 00:00:00 2001 From: Zeller Date: Sat, 29 Mar 2025 15:09:36 +0100 Subject: [PATCH] fix: adapt breaking changes of OC\Console\Application constructor --- lib/Controller/OccController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Controller/OccController.php b/lib/Controller/OccController.php index 9826b6e..3ead8c1 100644 --- a/lib/Controller/OccController.php +++ b/lib/Controller/OccController.php @@ -30,12 +30,14 @@ class OccController extends Controller $this->userId = $userId; $this->application = new Application( + OC::$server->get(\OCP\ServerVersion::class), OC::$server->getConfig(), OC::$server->get(\OCP\EventDispatcher\IEventDispatcher::class), new FakeRequest(), $this->logger, OC::$server->query(MemoryInfo::class), - OC::$server->get(\OCP\App\IAppManager::class) // Obtain the IAppManager + OC::$server->get(\OCP\App\IAppManager::class), // Obtain the IAppManager + OC::$server->get(\OCP\Defaults::class) ); $this->application->setAutoExit(false); $this->output = new OccOutput(OutputInterface::VERBOSITY_NORMAL, true);