29 lines
861 B
PHP
29 lines
861 B
PHP
<?php
|
|
/**
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
namespace OCA\Survey_Client\AppInfo;
|
|
|
|
use OCA\Survey_Client\Notifier;
|
|
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 function __construct(array $urlParams = []) {
|
|
parent::__construct('survey_client', $urlParams);
|
|
}
|
|
|
|
public function register(IRegistrationContext $context): void {
|
|
}
|
|
|
|
public function boot(IBootContext $context): void {
|
|
$notificationManager = $context->getServerContainer()->getNotificationManager();
|
|
$notificationManager->registerNotifierService(Notifier::class);
|
|
}
|
|
}
|