Use dispatchTyped

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2020-03-06 15:44:42 +01:00 committed by Daniel Calviño Sánchez
parent 92a6530c0f
commit 3cdadeb9e9
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ class ViewController extends Controller {
$this->eventDispatcher->dispatch(LoadSidebar::class, new LoadSidebar());
// Load Viewer scripts
if (class_exists(LoadViewer::class)) {
$this->eventDispatcher->dispatch(LoadViewer::class, new LoadViewer());
$this->eventDispatcher->dispatchTyped(new LoadViewer());
}
$params = [];