mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
docs: add documentation on MessageHandler
This commit is contained in:
@@ -25,6 +25,11 @@ final readonly class ProcessWatchListsTriggerHandler
|
||||
*/
|
||||
public function __invoke(ProcessWatchListsTrigger $message): void
|
||||
{
|
||||
/*
|
||||
* We shuffle the watch lists to process them in an order that we consider random.
|
||||
* The shuffling is provided by a high-level API of a CSPRNG number generator.
|
||||
*/
|
||||
|
||||
$randomizer = new Randomizer();
|
||||
$watchLists = $randomizer->shuffleArray($this->watchListRepository->findAll());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user