diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-07-14 05:06:18 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-07-14 05:06:18 +0300 |
commit | 820a9402a6bbbdd034e6f3c6c2c2bac33143f759 (patch) | |
tree | 7832fc0d2c65591cfd2d9698e6df9f4fb8367749 /lib | |
parent | a228a6278340180bb3777439052b578d49fcbca6 (diff) |
Use IBootstrap for the app
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/AppInfo/Application.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 7786ab6..42626ce 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -22,10 +22,22 @@ 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 { +class Application extends App implements IBootstrap { public function __construct (array $urlParams = array()) { 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); + } } |