diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-04-18 18:44:45 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-04-18 18:44:45 -0400 |
commit | 370b5a0fd7c1dba60e3b973506ba087adba42be0 (patch) | |
tree | 8da109b4fc90062d6eebb69d4ae2efca4da1bac3 /app/Subscriber | |
parent | f53bb88d10836e5c31efb958683d8bf3829eecbf (diff) |
Add Slack and Hipchat integrations for each projects
Diffstat (limited to 'app/Subscriber')
-rw-r--r-- | app/Subscriber/ProjectActivitySubscriber.php | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/app/Subscriber/ProjectActivitySubscriber.php b/app/Subscriber/ProjectActivitySubscriber.php index 42314637..696b958b 100644 --- a/app/Subscriber/ProjectActivitySubscriber.php +++ b/app/Subscriber/ProjectActivitySubscriber.php @@ -49,26 +49,22 @@ class ProjectActivitySubscriber extends Base implements EventSubscriberInterface private function sendSlackNotification($event_name, array $values) { - if ($this->config->get('integration_slack_webhook') == 1) { - $this->slackWebhook->notify( - $values['task']['project_id'], - $values['task']['id'], - $event_name, - $values - ); - } + $this->slackWebhook->notify( + $values['task']['project_id'], + $values['task']['id'], + $event_name, + $values + ); } private function sendHipchatNotification($event_name, array $values) { - if ($this->config->get('integration_hipchat') == 1) { - $this->hipchat->notify( - $values['task']['project_id'], - $values['task']['id'], - $event_name, - $values - ); - } + $this->hipchat->notify( + $values['task']['project_id'], + $values['task']['id'], + $event_name, + $values + ); } private function getValues(GenericEvent $event) |