%PDF- %PDF-
Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/recommendations/lib/AppInfo/ |
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/recommendations/lib/AppInfo/Application.php |
<?php declare(strict_types=1); /** * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ namespace OCA\Recommendations\AppInfo; use OCA\Files\Event\LoadAdditionalScriptsEvent; use OCA\Recommendations\Dashboard\RecommendationWidget; use OCA\Recommendations\Listeners\FilesLoadAdditionalScriptsListener; use OCP\AppFramework\App; use OCP\AppFramework\Bootstrap\IBootContext; use OCP\AppFramework\Bootstrap\IBootstrap; use OCP\AppFramework\Bootstrap\IRegistrationContext; class Application extends App implements IBootstrap { public const APP_ID = 'recommendations'; public function __construct(array $urlParams = []) { parent::__construct(self::APP_ID, $urlParams); } public function register(IRegistrationContext $context): void { $context->registerEventListener(LoadAdditionalScriptsEvent::class, FilesLoadAdditionalScriptsListener::class); $context->registerDashboardWidget(RecommendationWidget::class); } public function boot(IBootContext $context): void { } }