summaryrefslogtreecommitdiffstats
path: root/apps/dav/appinfo/v1/carddav.php
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/appinfo/v1/carddav.php
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/appinfo/v1/carddav.php')
-rw-r--r--apps/dav/appinfo/v1/carddav.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/dav/appinfo/v1/carddav.php b/apps/dav/appinfo/v1/carddav.php
index 53449b91c4b..a0306118781 100644
--- a/apps/dav/appinfo/v1/carddav.php
+++ b/apps/dav/appinfo/v1/carddav.php
@@ -36,6 +36,7 @@ use OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin;
use OCA\DAV\Connector\Sabre\MaintenancePlugin;
use OCA\DAV\Connector\Sabre\Principal;
use OCP\App\IAppManager;
+use Psr\Log\LoggerInterface;
use Sabre\CardDAV\Plugin;
$authBackend = new Auth(
@@ -95,9 +96,9 @@ $server->addPlugin(new \Sabre\DAV\Sync\Plugin());
$server->addPlugin(new \Sabre\CardDAV\VCFExportPlugin());
$server->addPlugin(new \OCA\DAV\CardDAV\ImageExportPlugin(new \OCA\DAV\CardDAV\PhotoCache(
\OC::$server->getAppDataDir('dav-photocache'),
- \OC::$server->getLogger()
+ \OC::$server->get(LoggerInterface::class)
)));
-$server->addPlugin(new ExceptionLoggerPlugin('carddav', \OC::$server->getLogger()));
+$server->addPlugin(new ExceptionLoggerPlugin('carddav', \OC::$server->get(LoggerInterface::class)));
// And off we go!
$server->exec();