Move events handling to Symfony\EventDispatcher

This commit is contained in:
Frédéric Guillot
2014-12-27 19:10:38 -05:00
parent cf821e117c
commit 17dc5bdc9e
75 changed files with 1076 additions and 1167 deletions

View File

@@ -2,6 +2,8 @@
namespace Model;
use Event\TaskEvent;
/**
* Task Status
*
@@ -84,9 +86,9 @@ class TaskStatus extends Base
));
if ($result) {
$this->event->trigger(
$this->container['dispatcher']->dispatch(
$event,
array('task_id' => $task_id) + $this->taskFinder->getById($task_id)
new TaskEvent(array('task_id' => $task_id) + $this->taskFinder->getById($task_id))
);
}