30 lines
808 B
PHP
30 lines
808 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace OCA\CustomPwa\AppInfo;
|
|
|
|
use OCA\CustomPwa\App as NotificationApp;
|
|
use OCP\AppFramework\App;
|
|
use OCP\AppFramework\Bootstrap\IBootContext;
|
|
use OCP\AppFramework\Bootstrap\IBootstrap;
|
|
use OCP\AppFramework\Bootstrap\IRegistrationContext;
|
|
use OCP\Notification\IManager as INotificationManager;
|
|
|
|
class Application extends App implements IBootstrap {
|
|
public const APP_ID = 'custom_pwa';
|
|
|
|
public function __construct(array $urlParams = []) {
|
|
parent::__construct(self::APP_ID, $urlParams);
|
|
}
|
|
|
|
public function register(IRegistrationContext $context): void {
|
|
}
|
|
|
|
public function boot(IBootContext $context): void {
|
|
$context->injectFn(function (INotificationManager $notificationManager): void {
|
|
$notificationManager->registerApp(NotificationApp::class);
|
|
});
|
|
}
|
|
}
|