Fixs after replacing the event dispatcher

This commit is contained in:
Frédéric Guillot
2014-12-27 19:23:51 -05:00
parent 17dc5bdc9e
commit 1522be603b
6 changed files with 22 additions and 18 deletions

View File

@@ -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);