diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-07-13 16:05:11 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-07-15 13:55:26 +0200 |
commit | 217a69ebf9cd766c23b6f69037cbbe07cb00b7ce (patch) | |
tree | f95428cddfe142f569a5c1a2dfd35fd6e3648e5c /apps/files_sharing/lib/AppInfo/Application.php | |
parent | 2ad95feab6dd525cdda5aa61c22119c98d21ca97 (diff) | |
download | nextcloud-server-217a69ebf9cd766c23b6f69037cbbe07cb00b7ce.tar.gz nextcloud-server-217a69ebf9cd766c23b6f69037cbbe07cb00b7ce.zip |
Add BeforeTemplateRenderedEvent for files_sharing
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_sharing/lib/AppInfo/Application.php')
-rw-r--r-- | apps/files_sharing/lib/AppInfo/Application.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/AppInfo/Application.php b/apps/files_sharing/lib/AppInfo/Application.php index 34cde50c438..acf1462601d 100644 --- a/apps/files_sharing/lib/AppInfo/Application.php +++ b/apps/files_sharing/lib/AppInfo/Application.php @@ -32,7 +32,9 @@ namespace OCA\Files_Sharing\AppInfo; use OC\AppFramework\Utility\SimpleContainer; use OCA\Files_Sharing\Capabilities; +use OCA\Files_Sharing\Event\BeforeTemplateRenderedEvent; use OCA\Files_Sharing\External\Manager; +use OCA\Files_Sharing\Listener\LegacyBeforeTemplateRenderedListener; use OCA\Files_Sharing\Listener\LoadAdditionalListener; use OCA\Files_Sharing\Listener\LoadSidebarListener; use OCA\Files_Sharing\Listener\ShareInteractionListener; @@ -138,6 +140,7 @@ class Application extends App { protected function registerEventsScripts(IEventDispatcher $dispatcher) { // sidebar and files scripts $dispatcher->addServiceListener(LoadAdditionalScriptsEvent::class, LoadAdditionalListener::class); + $dispatcher->addServiceListener(BeforeTemplateRenderedEvent::class, LegacyBeforeTemplateRenderedListener::class); $dispatcher->addServiceListener(LoadSidebar::class, LoadSidebarListener::class); $dispatcher->addServiceListener(ShareCreatedEvent::class, ShareInteractionListener::class); $dispatcher->addListener('\OCP\Collaboration\Resources::loadAdditionalScripts', function () { |