fix: adapt breaking changes of OC\Console\Application constructor

This commit is contained in:
Zeller
2025-03-29 15:09:36 +01:00
committed by Adphi
parent 33613686ea
commit 44eb700713
+3 -1
View File
@@ -30,12 +30,14 @@ class OccController extends Controller
$this->userId = $userId; $this->userId = $userId;
$this->application = new Application( $this->application = new Application(
OC::$server->get(\OCP\ServerVersion::class),
OC::$server->getConfig(), OC::$server->getConfig(),
OC::$server->get(\OCP\EventDispatcher\IEventDispatcher::class), OC::$server->get(\OCP\EventDispatcher\IEventDispatcher::class),
new FakeRequest(), new FakeRequest(),
$this->logger, $this->logger,
OC::$server->query(MemoryInfo::class), 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->application->setAutoExit(false);
$this->output = new OccOutput(OutputInterface::VERBOSITY_NORMAL, true); $this->output = new OccOutput(OutputInterface::VERBOSITY_NORMAL, true);