From 370b5a0fd7c1dba60e3b973506ba087adba42be0 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 18 Apr 2015 18:44:45 -0400 Subject: Add Slack and Hipchat integrations for each projects --- app/Subscriber/ProjectActivitySubscriber.php | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) (limited to 'app/Subscriber') 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) -- cgit v1.2.3