diff options
author | Louis Chemineau <louis@chmn.me> | 2021-10-15 11:57:39 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-10-16 09:42:07 +0200 |
commit | def983dc7ea11b9f8e449d56019f934ce89d9490 (patch) | |
tree | 4b99dfe4c8b29e5d234d27a1b15867f45650619b /apps/dav/lib/Server.php | |
parent | dd938dadefcbfa09fece30efcdaf09538f01d9e3 (diff) | |
download | nextcloud-server-def983dc7ea11b9f8e449d56019f934ce89d9490.tar.gz nextcloud-server-def983dc7ea11b9f8e449d56019f934ce89d9490.zip |
Clean BulkUpload plugin
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/dav/lib/Server.php')
-rw-r--r-- | apps/dav/lib/Server.php | 8 |
1 files changed, 4 insertions, 4 deletions
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( |