From 17e1e8cd11199cb45090fd2e1a66015b4a2f422c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Ma=C5=A1=C3=AD=C4=8Dek?= Date: Thu, 11 Aug 2022 13:51:45 +0200 Subject: [PATCH] Fix callback process parameters --- src/Service/QueueService.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Service/QueueService.php b/src/Service/QueueService.php index 116af38..fd7ef90 100644 --- a/src/Service/QueueService.php +++ b/src/Service/QueueService.php @@ -141,14 +141,12 @@ protected function send(Entity\AbstractMailQueueEntry $entry) { /** - * @param \ADT\BackgroundQueue\Entity\QueueEntity $entity + * @param int $entryId * @return bool * * new_rabbit */ - public function process(\ADT\BackgroundQueue\Entity\QueueEntity $entity) { - $parameters = $entity->getParameters(); - $entryId = $parameters[self::PARAMETER_NAME_MAIL_QUEUE_ENTRY_ID]; + public function process(int $entryId) { $entry = $this->em->find($this->queueEntryClass, $entryId);