Improve webhooks to call external url on task creation/modification

This commit is contained in:
Frédéric Guillot
2014-07-21 20:32:12 -02:30
parent 4ae655ced3
commit 9e1dcf21dc
18 changed files with 320 additions and 14 deletions

View File

@@ -13,6 +13,7 @@ use Model\Comment;
use Model\SubTask;
use Model\Board;
use Model\Action;
use Model\Webhook;
$config = new Config($registry->shared('db'), $registry->shared('event'));
$project = new Project($registry->shared('db'), $registry->shared('event'));
@@ -23,9 +24,11 @@ $comment = new Comment($registry->shared('db'), $registry->shared('event'));
$subtask = new SubTask($registry->shared('db'), $registry->shared('event'));
$board = new Board($registry->shared('db'), $registry->shared('event'));
$action = new Action($registry->shared('db'), $registry->shared('event'));
$webhook = new Webhook($registry->shared('db'), $registry->shared('event'));
$action->attachEvents();
$project->attachEvents();
$webhook->attachEvents();
$server = new Server;
$server->authentication(array('jsonrpc' => $config->get('api_token')));