From def983dc7ea11b9f8e449d56019f934ce89d9490 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Fri, 15 Oct 2021 11:57:39 +0200 Subject: Clean BulkUpload plugin Signed-off-by: Louis Chemineau --- apps/dav/lib/Server.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/dav/lib/Server.php') diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php index 74ae94a6d51..055c37f8472 100644 --- a/apps/dav/lib/Server.php +++ b/apps/dav/lib/Server.php @@ -34,6 +34,7 @@ */ namespace OCA\DAV; +use Psr\Log\LoggerInterface; use OCA\DAV\AppInfo\PluginManager; use OCA\DAV\CalDAV\BirthdayService; use OCA\DAV\CardDAV\HasPhotoPlugin; @@ -62,12 +63,11 @@ use OCA\DAV\DAV\PublicAuth; use OCA\DAV\Events\SabrePluginAuthInitEvent; use OCA\DAV\Files\BrowserErrorPagePlugin; use OCA\DAV\Files\LazySearchBackend; -use OCA\DAV\BundleUpload\BundlingPlugin; +use OCA\DAV\BulkUpload\BulkUploadPlugin; use OCA\DAV\Provisioning\Apple\AppleProvisioningPlugin; use OCA\DAV\SystemTag\SystemTagPlugin; use OCA\DAV\Upload\ChunkingPlugin; use OCP\EventDispatcher\IEventDispatcher; -use OCP\Files\IRootFolder; use OCP\IRequest; use OCP\SabrePluginEvent; use Sabre\CardDAV\VCFExportPlugin; @@ -296,9 +296,9 @@ class Server { \OC::$server->getShareManager(), $view )); - $rootFolder = \OC::$server->query(IRootFolder::class); + $logger = \OC::$server->get(LoggerInterface::class); $this->server->addPlugin( - new BundlingPlugin($view, $userFolder) + new BulkUploadPlugin($userFolder, $logger) ); } $this->server->addPlugin(new \OCA\DAV\CalDAV\BirthdayCalendar\EnablePlugin( -- cgit v1.2.3