diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-12-03 18:20:46 +0100 |
---|---|---|
committer | npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> | 2019-12-04 08:07:42 +0000 |
commit | 241aac9f946d06fcb8cee84d6839253ad19ee929 (patch) | |
tree | 51ae87047cd3c4bf2978a4326355993164206c23 /apps/files/lib/AppInfo | |
parent | cd71ad0e50ecafdbad67c99d77bd77b32bdd5ca5 (diff) | |
download | nextcloud-server-241aac9f946d06fcb8cee84d6839253ad19ee929.tar.gz nextcloud-server-241aac9f946d06fcb8cee84d6839253ad19ee929.zip |
Fix files app LoadSidebar event
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/files/lib/AppInfo')
-rw-r--r-- | apps/files/lib/AppInfo/Application.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files/lib/AppInfo/Application.php b/apps/files/lib/AppInfo/Application.php index f4897d08e54..05d9e27ef06 100644 --- a/apps/files/lib/AppInfo/Application.php +++ b/apps/files/lib/AppInfo/Application.php @@ -27,14 +27,14 @@ namespace OCA\Files\AppInfo; -use OCA\Files\Activity\Helper; use OCA\Files\Capabilities; use OCA\Files\Collaboration\Resources\Listener; use OCA\Files\Collaboration\Resources\ResourceProvider; use OCA\Files\Controller\ApiController; -use OCA\Files\Controller\ViewController; use OCA\Files\Event\LoadAdditionalScriptsEvent; +use OCA\Files\Event\LoadSidebar; use OCA\Files\Listener\LegacyLoadAdditionalScriptsAdapter; +use OCA\Files\Listener\LoadSidebarListener; use OCA\Files\Notification\Notifier; use OCA\Files\Service\TagService; use OCP\AppFramework\App; @@ -97,6 +97,7 @@ class Application extends App { /** @var IEventDispatcher $dispatcher */ $dispatcher = $container->query(IEventDispatcher::class); $dispatcher->addServiceListener(LoadAdditionalScriptsEvent::class, LegacyLoadAdditionalScriptsAdapter::class); + $dispatcher->addServiceListener(LoadSidebar::class, LoadSidebarListener::class); /** @var \OCP\Notification\IManager $notifications */ $notifications = $container->query(\OCP\Notification\IManager::class); |