diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-11-09 15:11:15 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-11-09 15:11:15 +0100 |
commit | 6b960de47cabaa7a231e72479012ba4dcbc2e882 (patch) | |
tree | 362d7052250df7f8ec341f9035f4320666a9e748 /apps/user_ldap/lib/User/Manager.php | |
parent | 81b60c14c985b0a46fd31733db2add9efd7bedba (diff) | |
download | nextcloud-server-6b960de47cabaa7a231e72479012ba4dcbc2e882.tar.gz nextcloud-server-6b960de47cabaa7a231e72479012ba4dcbc2e882.zip |
Get rid of LogWrapper calling deprecated logger and use LoggerInterface from PSR instead
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/user_ldap/lib/User/Manager.php')
-rw-r--r-- | apps/user_ldap/lib/User/Manager.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/user_ldap/lib/User/Manager.php b/apps/user_ldap/lib/User/Manager.php index 87f75f093db..63af3cf1770 100644 --- a/apps/user_ldap/lib/User/Manager.php +++ b/apps/user_ldap/lib/User/Manager.php @@ -31,7 +31,6 @@ namespace OCA\User_LDAP\User; use OC\Cache\CappedMemoryCache; use OCA\User_LDAP\Access; use OCA\User_LDAP\FilesystemHelper; -use OCA\User_LDAP\LogWrapper; use OCP\IAvatarManager; use OCP\IConfig; use OCP\IDBConnection; @@ -39,6 +38,7 @@ use OCP\Image; use OCP\IUserManager; use OCP\Notification\IManager as INotificationManager; use OCP\Share\IManager; +use Psr\Log\LoggerInterface; /** * Manager @@ -65,8 +65,8 @@ class Manager { /** @var FilesystemHelper */ protected $ocFilesystem; - /** @var LogWrapper */ - protected $ocLog; + /** @var LoggerInterface */ + protected $logger; /** @var Image */ protected $image; @@ -88,7 +88,7 @@ class Manager { public function __construct( IConfig $ocConfig, FilesystemHelper $ocFilesystem, - LogWrapper $ocLog, + LoggerInterface $logger, IAvatarManager $avatarManager, Image $image, IUserManager $userManager, @@ -97,7 +97,7 @@ class Manager { ) { $this->ocConfig = $ocConfig; $this->ocFilesystem = $ocFilesystem; - $this->ocLog = $ocLog; + $this->logger = $logger; $this->avatarManager = $avatarManager; $this->image = $image; $this->userManager = $userManager; @@ -126,7 +126,7 @@ class Manager { private function createAndCache($dn, $uid) { $this->checkAccess(); $user = new User($uid, $dn, $this->access, $this->ocConfig, - $this->ocFilesystem, clone $this->image, $this->ocLog, + $this->ocFilesystem, clone $this->image, $this->logger, $this->avatarManager, $this->userManager, $this->notificationManager); $this->usersByDN[$dn] = $user; |