diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2021-04-14 08:45:07 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-04-16 13:56:28 +0200 |
commit | 808e5890355a9f719bd6db5f74c3514a07140963 (patch) | |
tree | edd1ca1f4a5e8c3a1ba31f9d1c7aff54351fc459 /lib/public | |
parent | 403388269a15c11e06c8d8585fefec4e78aa343b (diff) | |
download | nextcloud-server-808e5890355a9f719bd6db5f74c3514a07140963.tar.gz nextcloud-server-808e5890355a9f719bd6db5f74c3514a07140963.zip |
Allow registering NotifierServices trough IBootstrap
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/AppFramework/Bootstrap/IRegistrationContext.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php index a53a4d2a6e4..870df9663ea 100644 --- a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php +++ b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php @@ -34,6 +34,7 @@ use OCP\Capabilities\ICapability; use OCP\EventDispatcher\IEventDispatcher; use OCP\Files\Template\ICustomTemplateProvider; use OCP\IContainer; +use OCP\Notification\INotifier; /** * The context object passed to IBootstrap::register @@ -209,4 +210,13 @@ interface IRegistrationContext { * @since 21.0.0 */ public function registerTemplateProvider(string $providerClass): void; + + /** + * Register an INotifier class + * + * @param string $notifierClass + * @psalm-param class-string<INotifier> $notifierClass + * @since 22.0.0 + */ + public function registerNotifierService(string $notifierClass): void; } |