summaryrefslogtreecommitdiff
path: root/doc/plugin-notifications.markdown
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-06-01 20:21:26 -0400
committerFrederic Guillot <fred@kanboard.net>2016-06-01 20:21:26 -0400
commitca87b1b60f9b4b49c80920e5009d6fbe4e3fb514 (patch)
tree7e70d2dd7e9466571146a47229965fcb043dff82 /doc/plugin-notifications.markdown
parentb0a31b168f41cf4b4e88b018747916992d9e5830 (diff)
Update documentation
Diffstat (limited to 'doc/plugin-notifications.markdown')
-rw-r--r--doc/plugin-notifications.markdown4
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.