Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-08-12 14:31:29 +0300
committerJohn Molakvoæ <skjnldsv@protonmail.com>2021-10-19 12:31:08 +0300
commitef93d2ea1c089d65660591857e5f6a1608210d3c (patch)
tree23218257ea05fb449bb156172426fe1efb6c53b3 /apps/files_sharing/lib
parent7345de78c582ffcb01c56e2a0c38788eb913d414 (diff)
update tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/Hooks.php18
1 files changed, 1 insertions, 17 deletions
diff --git a/apps/files_sharing/lib/Hooks.php b/apps/files_sharing/lib/Hooks.php
index f28f6910abd..1c93d913eaf 100644
--- a/apps/files_sharing/lib/Hooks.php
+++ b/apps/files_sharing/lib/Hooks.php
@@ -27,26 +27,10 @@
namespace OCA\Files_Sharing;
use OC\Files\Filesystem;
-use OCP\EventDispatcher\IEventDispatcher;
-use Psr\Log\LoggerInterface;
class Hooks {
public static function deleteUser($params) {
- $manager = new External\Manager(
- \OC::$server->getDatabaseConnection(),
- \OC\Files\Filesystem::getMountManager(),
- \OC\Files\Filesystem::getLoader(),
- \OC::$server->getHTTPClientService(),
- \OC::$server->getNotificationManager(),
- \OC::$server->query(\OCP\OCS\IDiscoveryService::class),
- \OC::$server->getCloudFederationProviderManager(),
- \OC::$server->getCloudFederationFactory(),
- \OC::$server->getGroupManager(),
- \OC::$server->getUserManager(),
- $params['uid'],
- \OC::$server->query(IEventDispatcher::class),
- \OC::$server->get(LoggerInterface::class)
- );
+ $manager = \OC::$server->get(External\Manager::class);
$manager->removeUserShares($params['uid']);
}