diff options
author | Robin Appelman <robin@icewind.nl> | 2021-02-10 13:53:05 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-02-12 17:33:12 +0100 |
commit | f824f273b62ada6b80fede8f8e3d320e4666caae (patch) | |
tree | 3bd5b8f285777c0837fa5a0732c4a779c601d5fe /apps/dav/appinfo | |
parent | 361f160d0daa4c3baf84c801118c0d85886aa6d9 (diff) | |
download | nextcloud-server-f824f273b62ada6b80fede8f8e3d320e4666caae.tar.gz nextcloud-server-f824f273b62ada6b80fede8f8e3d320e4666caae.zip |
add event for when a direct download is triggered
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/dav/appinfo')
-rw-r--r-- | apps/dav/appinfo/v2/direct.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/dav/appinfo/v2/direct.php b/apps/dav/appinfo/v2/direct.php index 522c3d90ce9..1d250a30065 100644 --- a/apps/dav/appinfo/v2/direct.php +++ b/apps/dav/appinfo/v2/direct.php @@ -25,6 +25,8 @@ declare(strict_types=1); * */ +use \OCA\DAV\Direct\ServerFactory; + // no php execution timeout for webdav if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) { @set_time_limit(0); @@ -36,7 +38,8 @@ ignore_user_abort(true); $requestUri = \OC::$server->getRequest()->getRequestUri(); -$serverFactory = new \OCA\DAV\Direct\ServerFactory(\OC::$server->getConfig(), \OC::$server->getL10N('dav')); +/** @var ServerFactory $serverFactory */ +$serverFactory = \OC::$server->query(ServerFactory::class); $server = $serverFactory->createServer( $baseuri, $requestUri, |