aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Hooks.php
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2021-07-20 20:36:26 +0200
committerVincent Petry <vincent@nextcloud.com>2021-07-27 13:04:39 +0200
commitdac676c14ef7a3bd866a674c2ced666435d977c6 (patch)
treeac22860171df795acc5a6234394ec154f2cef638 /apps/files_sharing/lib/Hooks.php
parente67e90afce36edb18cebbc5f5799e427b891e114 (diff)
downloadnextcloud-server-dac676c14ef7a3bd866a674c2ced666435d977c6.tar.gz
nextcloud-server-dac676c14ef7a3bd866a674c2ced666435d977c6.zip
Replace ILogger with LoggerInterface in remote share manager
Signed-off-by: Vincent Petry <vincent@nextcloud.com> Co-authored-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/files_sharing/lib/Hooks.php')
-rw-r--r--apps/files_sharing/lib/Hooks.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Hooks.php b/apps/files_sharing/lib/Hooks.php
index 26e799297ff..f28f6910abd 100644
--- a/apps/files_sharing/lib/Hooks.php
+++ b/apps/files_sharing/lib/Hooks.php
@@ -28,6 +28,7 @@ namespace OCA\Files_Sharing;
use OC\Files\Filesystem;
use OCP\EventDispatcher\IEventDispatcher;
+use Psr\Log\LoggerInterface;
class Hooks {
public static function deleteUser($params) {
@@ -44,7 +45,7 @@ class Hooks {
\OC::$server->getUserManager(),
$params['uid'],
\OC::$server->query(IEventDispatcher::class),
- \OC::$server->getLogger()
+ \OC::$server->get(LoggerInterface::class)
);
$manager->removeUserShares($params['uid']);