aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-07-27 22:37:15 +0200
committerJoas Schilling <coding@schilljs.com>2023-07-28 14:11:20 +0200
commitcebf93d4d2bd9bb51173f5caeb7ec495da19f8de (patch)
tree8468a7e38208d95d74860ccc7757f4be8b50e491 /lib
parent22e033b628d7edf10a184976c6884647fa338dd7 (diff)
downloadnextcloud-server-cebf93d4d2bd9bb51173f5caeb7ec495da19f8de.tar.gz
nextcloud-server-cebf93d4d2bd9bb51173f5caeb7ec495da19f8de.zip
fix: Remove legacy dispatcher from share manager
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Server.php1
-rw-r--r--lib/private/Share20/Manager.php6
2 files changed, 0 insertions, 7 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 8640fa3e38c..6c16278b044 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -1237,7 +1237,6 @@ class Server extends ServerContainer implements IServerContainer {
$factory,
$c->get(IUserManager::class),
$c->get(IRootFolder::class),
- $c->get(SymfonyAdapter::class),
$c->get(IMailer::class),
$c->get(IURLGenerator::class),
$c->get('ThemingDefaults'),
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php
index be5b70749da..9360046bc24 100644
--- a/lib/private/Share20/Manager.php
+++ b/lib/private/Share20/Manager.php
@@ -80,8 +80,6 @@ use OCP\Share\IProviderFactory;
use OCP\Share\IShare;
use OCP\Share\IShareProvider;
use Psr\Log\LoggerInterface;
-use Symfony\Component\EventDispatcher\EventDispatcherInterface;
-use Symfony\Component\EventDispatcher\GenericEvent;
/**
* This class is the communication hub for all sharing related operations.
@@ -110,8 +108,6 @@ class Manager implements IManager {
private $rootFolder;
/** @var CappedMemoryCache */
private $sharingDisabledForUsersCache;
- /** @var EventDispatcherInterface */
- private $legacyDispatcher;
/** @var LegacyHooks */
private $legacyHooks;
/** @var IMailer */
@@ -139,7 +135,6 @@ class Manager implements IManager {
IProviderFactory $factory,
IUserManager $userManager,
IRootFolder $rootFolder,
- EventDispatcherInterface $legacyDispatcher,
IMailer $mailer,
IURLGenerator $urlGenerator,
\OC_Defaults $defaults,
@@ -158,7 +153,6 @@ class Manager implements IManager {
$this->factory = $factory;
$this->userManager = $userManager;
$this->rootFolder = $rootFolder;
- $this->legacyDispatcher = $legacyDispatcher;
$this->sharingDisabledForUsersCache = new CappedMemoryCache();
// The constructor of LegacyHooks registers the listeners of share events
// do not remove if those are not properly migrated