diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2021-04-16 13:39:08 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-04-16 14:56:28 +0300 |
commit | 0593b039fc3387e76aa9798bcbf93bda8466667b (patch) | |
tree | a7ffc867435e8d905494aa6c1c3e0a403521a013 /apps/comments/lib | |
parent | fc1161722282ecc2d3a40627042b3dac418126cd (diff) |
Move over notification to new registration
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/comments/lib')
-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); |