Skip to content

Commit 9c51ed7

Browse files
committed
chore: Remove deprecated methods from notification manager
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 78fd649 commit 9c51ed7

2 files changed

Lines changed: 0 additions & 26 deletions

File tree

lib/private/Notification/Manager.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -90,22 +90,6 @@ public function registerApp(string $appClass): void {
9090
}
9191
}
9292

93-
/**
94-
* @param \Closure $service The service must implement INotifier, otherwise a
95-
* \InvalidArgumentException is thrown later
96-
* @param \Closure $info An array with the keys 'id' and 'name' containing
97-
* the app id and the app name
98-
* @deprecated 17.0.0 use registerNotifierService instead.
99-
* @since 8.2.0 - Parameter $info was added in 9.0.0
100-
*/
101-
public function registerNotifier(\Closure $service, \Closure $info): void {
102-
$infoData = $info();
103-
$exception = new \InvalidArgumentException(
104-
'Notifier ' . $infoData['name'] . ' (id: ' . $infoData['id'] . ') is not considered because it is using the old way to register.'
105-
);
106-
$this->logger->error($exception->getMessage(), ['exception' => $exception]);
107-
}
108-
10993
/**
11094
* @param string $notifierService The service must implement INotifier, otherwise a
11195
* \InvalidArgumentException is thrown later

lib/public/Notification/IManager.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@ interface IManager extends IApp, IPreloadableNotifier {
1919
*/
2020
public function registerApp(string $appClass): void;
2121

22-
/**
23-
* @param \Closure $service The service must implement INotifier, otherwise a
24-
* \InvalidArgumentException is thrown later
25-
* @param \Closure $info An array with the keys 'id' and 'name' containing
26-
* the app id and the app name
27-
* @deprecated 17.0.0 use registerNotifierService instead.
28-
* @since 8.2.0 - Parameter $info was added in 9.0.0
29-
*/
30-
public function registerNotifier(\Closure $service, \Closure $info);
31-
3222
/**
3323
* @param string $notifierService The service must implement INotifier, otherwise a
3424
* \InvalidArgumentException is thrown later

0 commit comments

Comments
 (0)