From 472f94efee77d8f47ece4ead7d36ee02e5df3e56 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 17 Oct 2015 12:30:05 -0400 Subject: Move webhook to project notification type --- app/Subscriber/WebhookSubscriber.php | 45 ------------------------------------ 1 file changed, 45 deletions(-) delete mode 100644 app/Subscriber/WebhookSubscriber.php (limited to 'app/Subscriber/WebhookSubscriber.php') diff --git a/app/Subscriber/WebhookSubscriber.php b/app/Subscriber/WebhookSubscriber.php deleted file mode 100644 index 8a2bd080..00000000 --- a/app/Subscriber/WebhookSubscriber.php +++ /dev/null @@ -1,45 +0,0 @@ - array('execute', 0), - Task::EVENT_UPDATE => array('execute', 0), - Task::EVENT_CLOSE => array('execute', 0), - Task::EVENT_OPEN => array('execute', 0), - Task::EVENT_MOVE_COLUMN => array('execute', 0), - Task::EVENT_MOVE_POSITION => array('execute', 0), - Task::EVENT_ASSIGNEE_CHANGE => array('execute', 0), - Task::EVENT_MOVE_PROJECT => array('execute', 0), - Task::EVENT_MOVE_SWIMLANE => array('execute', 0), - Comment::EVENT_CREATE => array('execute', 0), - Comment::EVENT_UPDATE => array('execute', 0), - File::EVENT_CREATE => array('execute', 0), - Subtask::EVENT_CREATE => array('execute', 0), - Subtask::EVENT_UPDATE => array('execute', 0), - ); - } - - public function execute(GenericEvent $event, $event_name) - { - $payload = array( - 'event_name' => $event_name, - 'event_data' => $event->getAll(), - ); - - $this->webhook->notify($payload); - } -} -- cgit v1.2.3