"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
Contributor

🔧 Problem: The Side Menu app was calling OC\Server::getAvatarManager(), which no longer exists in Nextcloud 32.

Fix:
#441

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

🔧 Problem: The Side Menu app was calling OC\Server::getAvatarManager(), which no longer exists in Nextcloud 32. ✅ Fix: https://gitnet.fr/deblan/side_menu/issues/441 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>
"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
58cfbc24af
🔧 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>
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
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
acde24ea71
Update lib/Controller/JsController.php
All checks were successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/security Pipeline was successful
9ad73c7bf7
Signed-off-by: AndyXheli <andyxheli@gmail.com>
Owner

I have to check compatbility with Nextcloud 31.

I have to check compatbility with Nextcloud 31.
Owner

Nextcloud 31 tested and validated!

Thanks for your contribution!

Nextcloud 31 tested and validated! Thanks for your contribution!
deblan merged commit e828a914cf into develop 2025-09-28 19:40:53 +02:00
Sign in to join this conversation.
No description provided.