"Refactor Side Menu JsController to Use IAvatarManager via Dependency Injection for Nextcloud 32 Com #442

Merged
deblan merged 4 commits from AndyXheli/side_menu:develop into develop 2025-09-28 19:40:53 +02:00

4 commits

Author SHA1 Message Date
9ad73c7bf7 Update lib/Controller/JsController.php
All checks were successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/security Pipeline was successful
Signed-off-by: AndyXheli <andyxheli@gmail.com>
2025-09-20 16:43:41 +02:00
acde24ea71 Update lib/Controller/JsController.php
Some checks are pending
ci/woodpecker/pr/build Pipeline is pending approval
ci/woodpecker/pr/security Pipeline is pending approval
2025-09-20 16:42:52 +02:00
8bd89b4565 Update lib/Controller/JsController.php
Some checks are pending
ci/woodpecker/pr/build Pipeline is pending approval
ci/woodpecker/pr/security Pipeline is pending approval
2025-09-20 16:41:49 +02:00
58cfbc24af "Refactor Side Menu JsController to Use IAvatarManager via Dependency Injection for Nextcloud 32 Com
All checks were successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/security Pipeline was successful
🔧 Problem: The Side Menu app was calling OC\Server::getAvatarManager(), which no longer exists in Nextcloud 32.

 Fix:

Injected IAvatarManager using Nextcloud’s public API instead of accessing it via OC::$server.

Updated the constructor to accept IAvatarManager, IUserSession, INavigationManager, and IURLGenerator.

Replaced all direct calls to OC::$server->getAvatarManager() and similar with the injected services.

This makes the app compatible with Nextcloud 32 and avoids deprecated internal method calls.

Signed-off-by: AndyXheli <andyxheli@gmail.com>
2025-09-20 16:25:58 +02:00