diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2021-04-16 12:39:08 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-04-16 13:56:28 +0200 |
commit | 0593b039fc3387e76aa9798bcbf93bda8466667b (patch) | |
tree | a7ffc867435e8d905494aa6c1c3e0a403521a013 /apps/comments | |
parent | fc1161722282ecc2d3a40627042b3dac418126cd (diff) | |
download | nextcloud-server-0593b039fc3387e76aa9798bcbf93bda8466667b.tar.gz nextcloud-server-0593b039fc3387e76aa9798bcbf93bda8466667b.zip |
Move over notification to new registration
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/comments')
-rw-r--r-- | apps/comments/lib/AppInfo/Application.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/comments/lib/AppInfo/Application.php b/apps/comments/lib/AppInfo/Application.php index c152afddadd..af12c7ac093 100644 --- a/apps/comments/lib/AppInfo/Application.php +++ b/apps/comments/lib/AppInfo/Application.php @@ -75,19 +75,16 @@ class Application extends App implements IBootstrap { $context->registerSearchProvider(CommentsSearchProvider::class); $context->registerInitialStateProvider(MaxAutoCompleteResultsInitialState::class); + + $context->registerNotifierService(Notifier::class); } public function boot(IBootContext $context): void { - $context->injectFn(Closure::fromCallable([$this, 'registerNotifier'])); $context->injectFn(Closure::fromCallable([$this, 'registerCommentsEventHandler'])); $context->getServerContainer()->get(ISearch::class)->registerProvider(LegacyProvider::class, ['apps' => ['files']]); } - protected function registerNotifier(IServerContainer $container) { - $container->getNotificationManager()->registerNotifierService(Notifier::class); - } - protected function registerCommentsEventHandler(IServerContainer $container) { $container->getCommentsManager()->registerEventHandler(function () { return $this->getContainer()->query(EventHandler::class); |