aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Command
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-03-31 15:51:29 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-05-02 10:52:44 +0200
commit5fb9de62488dec879de14f0bf2b703b7a9c3a1b7 (patch)
treea73a737ee17093cd8804a2df9b41748fd9231c25 /apps/dav/lib/Command
parente2531f8503dea904dd1cb389ca017ce7bda5ccfc (diff)
downloadnextcloud-server-5fb9de62488dec879de14f0bf2b703b7a9c3a1b7.tar.gz
nextcloud-server-5fb9de62488dec879de14f0bf2b703b7a9c3a1b7.zip
Migrate last instances of $server::getLogger() from dav
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/dav/lib/Command')
-rw-r--r--apps/dav/lib/Command/CreateCalendar.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/lib/Command/CreateCalendar.php b/apps/dav/lib/Command/CreateCalendar.php
index 1d818809245..2bea82a345e 100644
--- a/apps/dav/lib/Command/CreateCalendar.php
+++ b/apps/dav/lib/Command/CreateCalendar.php
@@ -34,6 +34,7 @@ use OCP\IConfig;
use OCP\IDBConnection;
use OCP\IGroupManager;
use OCP\IUserManager;
+use Psr\Log\LoggerInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
@@ -91,7 +92,7 @@ class CreateCalendar extends Command {
\OC::$server->getL10NFactory(),
);
$random = \OC::$server->getSecureRandom();
- $logger = \OC::$server->getLogger();
+ $logger = \OC::$server->get(LoggerInterface::class);
$dispatcher = \OC::$server->get(IEventDispatcher::class);
$legacyDispatcher = \OC::$server->getEventDispatcher();
$config = \OC::$server->get(IConfig::class);