Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adjust the registration to the fallback method
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Jul 18, 2019
commit 976dde7ada7baf12c9eb4e78791a306d95ffebca
2 changes: 1 addition & 1 deletion lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected function registerAdminNotifications(): void {
$this->getContainer()
->getServer()
->getNotificationManager()
->registerNotifier(AdminNotifications::class);
->registerNotifierService(AdminNotifications::class);
}

protected function registerUserInterface(): void {
Expand Down
9 changes: 1 addition & 8 deletions tests/Integration/app/appinfo/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,4 @@
*
*/

\OC::$server->getNotificationManager()->registerNotifier(function() {
return new \OCA\NotificationsIntegrationTesting\Notifier();
}, function() {
return [
'id' => 'testing',
'name' => 'testing',
];
});
\OC::$server->getNotificationManager()->registerNotifierService(\OCA\NotificationsIntegrationTesting\Notifier::class);