diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-12-27 19:23:51 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-12-27 19:23:51 -0500 |
commit | 1522be603b4508b03b8fa79a6a3fbfeb90ffece6 (patch) | |
tree | c26a1249befdfb87ba91abb53a3cb8b22a5178c7 /app/Subscriber | |
parent | 17dc5bdc9ede52ad618bbf326e67e3b6988170f7 (diff) |
Fixs after replacing the event dispatcher
Diffstat (limited to 'app/Subscriber')
-rw-r--r-- | app/Subscriber/Base.php | 12 | ||||
-rw-r--r-- | app/Subscriber/WebhookSubscriber.php | 6 |
2 files changed, 13 insertions, 5 deletions
diff --git a/app/Subscriber/Base.php b/app/Subscriber/Base.php index 1ed15327..5f884b39 100644 --- a/app/Subscriber/Base.php +++ b/app/Subscriber/Base.php @@ -2,8 +2,6 @@ namespace Subscriber; -use Event\TaskEvent; -use Model\Task; use Pimple\Container; /** @@ -11,6 +9,16 @@ use Pimple\Container; * * @package subscriber * @author Frederic Guillot + * + * @property \Model\Config $config + * @property \Model\Notification $notification + * @property \Model\Project $project + * @property \Model\ProjectPermission $projectPermission + * @property \Model\ProjectAnalytic $projectAnalytic + * @property \Model\ProjectDailySummary $projectDailySummary + * @property \Model\Task $task + * @property \Model\TaskExport $taskExport + * @property \Model\TaskFinder $taskFinder */ abstract class Base { diff --git a/app/Subscriber/WebhookSubscriber.php b/app/Subscriber/WebhookSubscriber.php index 20d765e2..6b5abf1b 100644 --- a/app/Subscriber/WebhookSubscriber.php +++ b/app/Subscriber/WebhookSubscriber.php @@ -23,15 +23,15 @@ class WebhookSubscriber extends Base implements EventSubscriberInterface public function onTaskCreation(TaskEvent $event) { - $this->executeRequest('webhook_url_task_creation'); + $this->executeRequest('webhook_url_task_creation', $event); } public function onTaskModification(TaskEvent $event) { - $this->executeRequest('webhook_url_task_modification'); + $this->executeRequest('webhook_url_task_modification', $event); } - public function executeRequest($parameter) + public function executeRequest($parameter, TaskEvent $event) { $url = $this->config->get($parameter); |