setType(MailNotification::TYPE, t('Email'), '\Kanboard\Notification\Mail'); $type->setType(WebNotification::TYPE, t('Web'), '\Kanboard\Notification\Web'); return $type; }; $container['projectNotificationType'] = function ($container) { $type = new ProjectNotificationType($container); $type->setType('webhook', 'Webhook', '\Kanboard\Notification\Webhook', true); $type->setType('activity_stream', 'ActivityStream', '\Kanboard\Notification\ActivityStream', true); return $type; }; return $container; } }