feat: add Messenger messages for import processing
This commit is contained in:
@@ -25,5 +25,5 @@ framework:
|
||||
Symfony\Component\Notifier\Message\ChatMessage: async
|
||||
Symfony\Component\Notifier\Message\SmsMessage: async
|
||||
|
||||
# Route your messages to the transports
|
||||
# 'App\Message\YourMessage': async
|
||||
App\Message\ProcessImportMessage: async
|
||||
App\Message\ImportFilmsBatchMessage: async
|
||||
|
||||
14
src/Message/ImportFilmsBatchMessage.php
Normal file
14
src/Message/ImportFilmsBatchMessage.php
Normal 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,
|
||||
) {}
|
||||
}
|
||||
12
src/Message/ProcessImportMessage.php
Normal file
12
src/Message/ProcessImportMessage.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Message;
|
||||
|
||||
readonly class ProcessImportMessage
|
||||
{
|
||||
public function __construct(
|
||||
public int $importId,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user