From cc591973a4e911e8301df3e29dea454cde941b88 Mon Sep 17 00:00:00 2001 From: Rahammetoela Toekiman Date: Wed, 18 Dec 2024 12:10:21 -0300 Subject: [PATCH] fix Too few arguments to function OC\Console\Application::__construct(), 5 passed in /var/www/html/custom_apps/occweb/lib/Controller/OccController.php on line 33 and exactly 6 expected fix #14 #15 #16 #17 --- lib/Controller/OccController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Controller/OccController.php b/lib/Controller/OccController.php index 709b29d..513c522 100644 --- a/lib/Controller/OccController.php +++ b/lib/Controller/OccController.php @@ -35,7 +35,8 @@ class OccController extends Controller OC::$server->get(\OCP\EventDispatcher\IEventDispatcher::class), new FakeRequest(), OC::$server->get(LoggerInterface::class), - OC::$server->query(MemoryInfo::class) + OC::$server->query(MemoryInfo::class), + OC::$server->get(\OCP\App\IAppManager::class) // Obtain the IAppManager ); $this->application->setAutoExit(false); $this->output = new OccOutput(OutputInterface::VERBOSITY_NORMAL, true);