feat: add Messenger messages for import processing

This commit is contained in:
thibaud-leclere
2026-03-29 10:18:35 +02:00
parent dedc41e237
commit 2d768e8b52
3 changed files with 28 additions and 2 deletions

View File

@@ -25,5 +25,5 @@ framework:
Symfony\Component\Notifier\Message\ChatMessage: async Symfony\Component\Notifier\Message\ChatMessage: async
Symfony\Component\Notifier\Message\SmsMessage: async Symfony\Component\Notifier\Message\SmsMessage: async
# Route your messages to the transports App\Message\ProcessImportMessage: async
# 'App\Message\YourMessage': async App\Message\ImportFilmsBatchMessage: async

View File

@@ -0,0 +1,14 @@
<?php
declare(strict_types=1);
namespace App\Message;
readonly class ImportFilmsBatchMessage
{
public function __construct(
public int $importId,
public int $offset,
public int $limit,
) {}
}

View File

@@ -0,0 +1,12 @@
<?php
declare(strict_types=1);
namespace App\Message;
readonly class ProcessImportMessage
{
public function __construct(
public int $importId,
) {}
}