Fixs after replacing the event dispatcher
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user