diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-11-14 16:12:44 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-11-14 16:12:44 -0500 |
commit | 2fc402f6733573627ad25394d109b9f848ef04f6 (patch) | |
tree | efc0407ef780742bee91886287bacb0c9b5903c1 /app/ServiceProvider/ClassProvider.php | |
parent | d0925d99e78843ef3c633aac052880fc271ac299 (diff) |
Fix PHP error when adding a new user with email notification enabled
Diffstat (limited to 'app/ServiceProvider/ClassProvider.php')
-rw-r--r-- | app/ServiceProvider/ClassProvider.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/ServiceProvider/ClassProvider.php b/app/ServiceProvider/ClassProvider.php index 79bb734f..2699de17 100644 --- a/app/ServiceProvider/ClassProvider.php +++ b/app/ServiceProvider/ClassProvider.php @@ -14,6 +14,8 @@ use Kanboard\Core\Tool; use Kanboard\Core\Http\Client as HttpClient; use Kanboard\Model\UserNotificationType; use Kanboard\Model\ProjectNotificationType; +use Kanboard\Notification\Mail as MailNotification; +use Kanboard\Notification\Web as WebNotification; class ClassProvider implements ServiceProviderInterface { @@ -141,8 +143,8 @@ class ClassProvider implements ServiceProviderInterface $container['userNotificationType'] = function ($container) { $type = new UserNotificationType($container); - $type->setType('email', t('Email'), '\Kanboard\Notification\Mail'); - $type->setType('web', t('Web'), '\Kanboard\Notification\Web'); + $type->setType(MailNotification::TYPE, t('Email'), '\Kanboard\Notification\Mail'); + $type->setType(WebNotification::TYPE, t('Web'), '\Kanboard\Notification\Web'); return $type; }; |