diff options
Diffstat (limited to 'doc/plugin-notifications.markdown')
-rw-r--r-- | doc/plugin-notifications.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/plugin-notifications.markdown b/doc/plugin-notifications.markdown index 15cf4b9b..4900b34b 100644 --- a/doc/plugin-notifications.markdown +++ b/doc/plugin-notifications.markdown @@ -13,8 +13,8 @@ Register a new notification type In your plugin registration file call the method `setType()`: ```php -$this->userNotificationType->setType('irc', t('IRC'), '\Kanboard\Plugin\IRC\Notification\IrcHandler'); -$this->projectNotificationType->setType('irc', t('IRC'), '\Kanboard\Plugin\IRC\Notification\IrcHandler'); +$this->userNotificationTypeModel->setType('irc', t('IRC'), '\Kanboard\Plugin\IRC\Notification\IrcHandler'); +$this->projectNotificationTypeModel->setType('irc', t('IRC'), '\Kanboard\Plugin\IRC\Notification\IrcHandler'); ``` Your handler can be registered for user or project notification. You don't necessarily need to support both. |