summaryrefslogtreecommitdiffstats
path: root/lib/Controller/PageController.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-10-03 10:17:41 +0200
committerJoas Schilling <coding@schilljs.com>2022-10-03 10:17:41 +0200
commit23672d4d9d7872757da509baacc74ebd6b2dcc76 (patch)
treee41b9a7658540cf723bcad74a5bd5947ebe684d7 /lib/Controller/PageController.php
parentd9217203c995b3971497f090b4bce75ad09d10b2 (diff)
Move to new event syntax
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller/PageController.php')
-rw-r--r--lib/Controller/PageController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php
index dbf2bb366..4814952e4 100644
--- a/lib/Controller/PageController.php
+++ b/lib/Controller/PageController.php
@@ -46,7 +46,7 @@ use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Http\Template\PublicTemplateResponse;
use OCP\AppFramework\Services\IInitialState;
use OCP\Collaboration\Reference\RenderReferenceEvent;
-use OCP\EventDispatcher\GenericEvent;
+use OCP\Collaboration\Resources\LoadAdditionalScriptsEvent;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Files\IRootFolder;
use OCP\HintException;
@@ -268,7 +268,7 @@ class PageController extends Controller {
$this->eventDispatcher->dispatchTyped(new LoadViewer());
}
- $this->eventDispatcher->dispatch('\OCP\Collaboration\Resources::loadAdditionalScripts', new GenericEvent());
+ $this->eventDispatcher->dispatchTyped(new LoadAdditionalScriptsEvent());
$this->eventDispatcher->dispatchTyped(new RenderReferenceEvent());
$response = new TemplateResponse($this->appName, 'index', [