From ca87b1b60f9b4b49c80920e5009d6fbe4e3fb514 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Wed, 1 Jun 2016 20:21:26 -0400 Subject: Update documentation --- doc/plugin-notifications.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/plugin-notifications.markdown') 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. -- cgit v1.2.3