PHRAS-3668 subtitle notification (#4416)

* subtitle notification

* fix notif
This commit is contained in:
Aina Sitraka
2023-11-22 14:15:30 +03:00
committed by GitHub
parent ab26d4936a
commit 1ccba2d9a0
15 changed files with 251 additions and 71 deletions

View File

@@ -4,7 +4,6 @@ namespace Alchemy\Phrasea\WorkerManager\Subscriber;
use Alchemy\Phrasea\Core\Event\Record\RecordAutoSubtitleEvent;
use Alchemy\Phrasea\Core\PhraseaEvents;
use Alchemy\Phrasea\Model\Entities\WorkerJob;
use Alchemy\Phrasea\Model\Repositories\WorkerJobRepository;
use Alchemy\Phrasea\WorkerManager\Queue\MessagePublisher;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
@@ -33,6 +32,7 @@ class SubtitleSubscriber implements EventSubscriberInterface
"recordId" => $event->getRecord()->getRecordId(),
"languageSource" => $event->getLanguageSource(),
"languageDestination" => $event->getLanguageDestination(),
"authenticatedUserId" => $event->getAuthenticatedUserId(),
"type" => MessagePublisher::SUBTITLE_TYPE // used to specify the final Q to publish message
];