bump symfony to 5.4.21
adapt to the new EventDispatcher API - Symfony\Component\EventDispatcher => Symfony\Contracts\EventDispatcher - dispatch() arguments swap - execute() must return int
This commit is contained in:
committed by
Frédéric Guillot
parent
bb4b547ffe
commit
bd7f3d219d
@@ -65,7 +65,7 @@ class TaskEventJob extends BaseJob
|
||||
protected function fireEvent($eventName, TaskEvent $event)
|
||||
{
|
||||
$this->logger->debug(__METHOD__.' Event fired: '.$eventName);
|
||||
$this->dispatcher->dispatch($eventName, $event);
|
||||
$this->dispatcher->dispatch($event, $eventName);
|
||||
|
||||
if ($eventName === TaskModel::EVENT_CREATE) {
|
||||
$userMentionJob = $this->userMentionJob->withParams($event['task']['description'], TaskModel::EVENT_USER_MENTION, $event);
|
||||
|
||||
Reference in New Issue
Block a user