aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/NavigationManager.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2024-12-18 19:41:08 +0100
committerGitHub <noreply@github.com>2024-12-18 19:41:08 +0100
commitd2923aa30f9a6f1829d53fa000454ad3fdeb2bf3 (patch)
treed051b5c3388a2039742b5aaed2d48cfce33ff8b3 /lib/private/NavigationManager.php
parentdb683da757d854ff0e86d78a8b7053e2677731ac (diff)
parent13fefc4612f1f894bef95c4b061058196d68a9f2 (diff)
downloadnextcloud-server-d2923aa30f9a6f1829d53fa000454ad3fdeb2bf3.tar.gz
nextcloud-server-d2923aa30f9a6f1829d53fa000454ad3fdeb2bf3.zip
Merge pull request #49904 from nextcloud/enh/noid/navigationentryevent
feat(Navigation): emit dedicated event for loading additional entries
Diffstat (limited to 'lib/private/NavigationManager.php')
-rw-r--r--lib/private/NavigationManager.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/NavigationManager.php b/lib/private/NavigationManager.php
index f341c6d3094..4bcd78b7fcf 100644
--- a/lib/private/NavigationManager.php
+++ b/lib/private/NavigationManager.php
@@ -11,6 +11,7 @@ use InvalidArgumentException;
use OC\App\AppManager;
use OC\Group\Manager;
use OCP\App\IAppManager;
+use OCP\EventDispatcher\IEventDispatcher;
use OCP\IConfig;
use OCP\IGroupManager;
use OCP\INavigationManager;
@@ -18,6 +19,7 @@ use OCP\IURLGenerator;
use OCP\IUser;
use OCP\IUserSession;
use OCP\L10N\IFactory;
+use OCP\Navigation\Events\LoadAdditionalEntriesEvent;
use Psr\Log\LoggerInterface;
/**
@@ -56,6 +58,7 @@ class NavigationManager implements INavigationManager {
IGroupManager $groupManager,
IConfig $config,
LoggerInterface $logger,
+ protected IEventDispatcher $eventDispatcher,
) {
$this->appManager = $appManager;
$this->urlGenerator = $urlGenerator;
@@ -318,6 +321,7 @@ class NavigationManager implements INavigationManager {
]);
}
}
+ $this->eventDispatcher->dispatchTyped(new LoadAdditionalEntriesEvent());
if ($this->userSession->isLoggedIn()) {
$user = $this->userSession->getUser();