Move to OCP\Collaboration\Resources\LoadAdditionalScriptsEvent

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2022-05-12 10:53:33 +02:00
parent b741ea79e5
commit 9e26af66bf
3 changed files with 6 additions and 7 deletions

8
composer.lock generated
View File

@@ -305,12 +305,12 @@
"source": {
"type": "git",
"url": "https://github.com/ChristophWurst/nextcloud_composer.git",
"reference": "309ccfab8b7e842df9f17d6389f190411158bd36"
"reference": "6a6fe9467e4427f17b1fade97d6252793fc7a9e8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ChristophWurst/nextcloud_composer/zipball/309ccfab8b7e842df9f17d6389f190411158bd36",
"reference": "309ccfab8b7e842df9f17d6389f190411158bd36",
"url": "https://api.github.com/repos/ChristophWurst/nextcloud_composer/zipball/6a6fe9467e4427f17b1fade97d6252793fc7a9e8",
"reference": "6a6fe9467e4427f17b1fade97d6252793fc7a9e8",
"shasum": ""
},
"require": {
@@ -341,7 +341,7 @@
"issues": "https://github.com/ChristophWurst/nextcloud_composer/issues",
"source": "https://github.com/ChristophWurst/nextcloud_composer/tree/master"
},
"time": "2022-07-02T02:10:17+00:00"
"time": "2022-07-06T02:28:38+00:00"
},
{
"name": "composer/package-versions-deprecated",

View File

@@ -29,6 +29,7 @@ use OCA\Deck\Service\PermissionService;
use OCA\Files\Event\LoadSidebar;
use OCA\Viewer\Event\LoadViewer;
use OCP\AppFramework\Http\ContentSecurityPolicy;
use OCP\Collaboration\Resources\LoadAdditionalScriptsEvent as CollaborationResourcesEvent;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\IConfig;
use OCP\IInitialStateService;
@@ -88,6 +89,7 @@ class PageController extends Controller {
$this->initialState->provideInitialState(Application::APP_ID, 'config', $this->configService->getAll());
$this->eventDispatcher->dispatchTyped(new LoadSidebar());
$this->eventDispatcher->dispatchTyped(new CollaborationResourcesEvent());
if (class_exists(LoadViewer::class)) {
$this->eventDispatcher->dispatchTyped(new LoadViewer());
}

View File

@@ -24,6 +24,3 @@
OCP\Util::addStyle('deck', 'globalstyles');
OCP\Util::addScript('deck', 'deck-main');
\OCP\Server::get(\OC\EventDispatcher\SymfonyAdapter::class)
->dispatch('\OCP\Collaboration\Resources::loadAdditionalScripts');