aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2024-10-04 16:28:23 -0700
committerChristopher Ng <chrng8@gmail.com>2024-10-08 16:33:17 -0700
commit1dcdc87b449a2241d3b715e7eb280e049609b723 (patch)
treec133d790f1afe31e10a2e76c3b034a1fc84cdcca
parent026b7b8b15a0b5c40279d39569ef2432f4343f65 (diff)
downloadnextcloud-server-1dcdc87b449a2241d3b715e7eb280e049609b723.tar.gz
nextcloud-server-1dcdc87b449a2241d3b715e7eb280e049609b723.zip
refactor: Clean up
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-rw-r--r--apps/provisioning_api/lib/Controller/AUserData.php44
1 files changed, 11 insertions, 33 deletions
diff --git a/apps/provisioning_api/lib/Controller/AUserData.php b/apps/provisioning_api/lib/Controller/AUserData.php
index 54ef3691cae..603c6306227 100644
--- a/apps/provisioning_api/lib/Controller/AUserData.php
+++ b/apps/provisioning_api/lib/Controller/AUserData.php
@@ -8,7 +8,7 @@ declare(strict_types=1);
*/
namespace OCA\Provisioning_API\Controller;
-use OC\Group\Manager;
+use OC\Group\Manager as GroupManager;
use OC\User\Backend;
use OC\User\NoUserException;
use OC_Helper;
@@ -22,7 +22,6 @@ use OCP\AppFramework\OCSController;
use OCP\Files\NotFoundException;
use OCP\Group\ISubAdmin;
use OCP\IConfig;
-use OCP\IGroupManager;
use OCP\IRequest;
use OCP\IUser;
use OCP\IUserManager;
@@ -47,39 +46,18 @@ abstract class AUserData extends OCSController {
public const USER_FIELD_MANAGER = 'manager';
public const USER_FIELD_NOTIFICATION_EMAIL = 'notify_email';
- /** @var IUserManager */
- protected $userManager;
- /** @var IConfig */
- protected $config;
- /** @var Manager */
- protected $groupManager;
- /** @var IUserSession */
- protected $userSession;
- /** @var IAccountManager */
- protected $accountManager;
- /** @var ISubAdmin */
- protected $subAdminManager;
- /** @var IFactory */
- protected $l10nFactory;
-
- public function __construct(string $appName,
+ public function __construct(
+ string $appName,
IRequest $request,
- IUserManager $userManager,
- IConfig $config,
- IGroupManager $groupManager,
- IUserSession $userSession,
- IAccountManager $accountManager,
- ISubAdmin $subAdminManager,
- IFactory $l10nFactory) {
+ protected IUserManager $userManager,
+ protected IConfig $config,
+ protected GroupManager $groupManager,
+ protected IUserSession $userSession,
+ protected IAccountManager $accountManager,
+ protected ISubAdmin $subAdminManager,
+ protected IFactory $l10nFactory,
+ ) {
parent::__construct($appName, $request);
-
- $this->userManager = $userManager;
- $this->config = $config;
- $this->groupManager = $groupManager;
- $this->userSession = $userSession;
- $this->accountManager = $accountManager;
- $this->subAdminManager = $subAdminManager;
- $this->l10nFactory = $l10nFactory;
}
/**