diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2024-08-01 17:35:29 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2024-08-01 20:13:11 +0200 |
commit | 0447aa4e6259c739c586dfe49c36b8c3735cf3cf (patch) | |
tree | 44dc5ca74f3a4c5d646effd504cfa5fc35922736 /apps/user_ldap/lib | |
parent | 60b9bb40f551c991bb5dd84c7fd7d358fe81887a (diff) | |
download | nextcloud-server-0447aa4e6259c739c586dfe49c36b8c3735cf3cf.tar.gz nextcloud-server-0447aa4e6259c739c586dfe49c36b8c3735cf3cf.zip |
fix(LDAP): remove unneeded dependencies
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/lib')
-rw-r--r-- | apps/user_ldap/lib/User_LDAP.php | 6 | ||||
-rw-r--r-- | apps/user_ldap/lib/User_Proxy.php | 10 |
2 files changed, 0 insertions, 16 deletions
diff --git a/apps/user_ldap/lib/User_LDAP.php b/apps/user_ldap/lib/User_LDAP.php index 245205f992d..4273563ff02 100644 --- a/apps/user_ldap/lib/User_LDAP.php +++ b/apps/user_ldap/lib/User_LDAP.php @@ -14,9 +14,7 @@ use OCA\User_LDAP\Exceptions\NotOnLDAP; use OCA\User_LDAP\User\DeletedUsersIndex; use OCA\User_LDAP\User\OfflineUser; use OCA\User_LDAP\User\User; -use OCP\IConfig; use OCP\IUserBackend; -use OCP\IUserSession; use OCP\Notification\IManager as INotificationManager; use OCP\User\Backend\ICountMappedUsersBackend; use OCP\User\Backend\ICountUsersBackend; @@ -25,7 +23,6 @@ use OCP\UserInterface; use Psr\Log\LoggerInterface; class User_LDAP extends BackendUtility implements IUserBackend, UserInterface, IUserLDAP, ICountUsersBackend, ICountMappedUsersBackend, IProvideEnabledStateBackend { - protected IConfig $ocConfig; protected INotificationManager $notificationManager; protected UserPluginManager $userPluginManager; protected LoggerInterface $logger; @@ -33,15 +30,12 @@ class User_LDAP extends BackendUtility implements IUserBackend, UserInterface, I public function __construct( Access $access, - IConfig $ocConfig, INotificationManager $notificationManager, - IUserSession $userSession, UserPluginManager $userPluginManager, LoggerInterface $logger, DeletedUsersIndex $deletedUsersIndex, ) { parent::__construct($access); - $this->ocConfig = $ocConfig; $this->notificationManager = $notificationManager; $this->userPluginManager = $userPluginManager; $this->logger = $logger; diff --git a/apps/user_ldap/lib/User_Proxy.php b/apps/user_ldap/lib/User_Proxy.php index df9e025f871..d3197296d7c 100644 --- a/apps/user_ldap/lib/User_Proxy.php +++ b/apps/user_ldap/lib/User_Proxy.php @@ -10,9 +10,7 @@ namespace OCA\User_LDAP; use OCA\User_LDAP\User\DeletedUsersIndex; use OCA\User_LDAP\User\OfflineUser; use OCA\User_LDAP\User\User; -use OCP\IConfig; use OCP\IUserBackend; -use OCP\IUserSession; use OCP\Notification\IManager as INotificationManager; use OCP\User\Backend\ICountMappedUsersBackend; use OCP\User\Backend\ICountUsersBackend; @@ -27,9 +25,7 @@ class User_Proxy extends Proxy implements IUserBackend, UserInterface, IUserLDAP private bool $isSetUp = false; private Helper $helper; - private IConfig $ocConfig; private INotificationManager $notificationManager; - private IUserSession $userSession; private UserPluginManager $userPluginManager; private LoggerInterface $logger; private DeletedUsersIndex $deletedUsersIndex; @@ -38,18 +34,14 @@ class User_Proxy extends Proxy implements IUserBackend, UserInterface, IUserLDAP Helper $helper, ILDAPWrapper $ldap, AccessFactory $accessFactory, - IConfig $ocConfig, INotificationManager $notificationManager, - IUserSession $userSession, UserPluginManager $userPluginManager, LoggerInterface $logger, DeletedUsersIndex $deletedUsersIndex, ) { parent::__construct($ldap, $accessFactory); $this->helper = $helper; - $this->ocConfig = $ocConfig; $this->notificationManager = $notificationManager; - $this->userSession = $userSession; $this->userPluginManager = $userPluginManager; $this->logger = $logger; $this->deletedUsersIndex = $deletedUsersIndex; @@ -64,9 +56,7 @@ class User_Proxy extends Proxy implements IUserBackend, UserInterface, IUserLDAP foreach ($serverConfigPrefixes as $configPrefix) { $this->backends[$configPrefix] = new User_LDAP( $this->getAccess($configPrefix), - $this->ocConfig, $this->notificationManager, - $this->userSession, $this->userPluginManager, $this->logger, $this->deletedUsersIndex, |