mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-26 06:05:34 +00:00
23 lines
438 B
PHP
23 lines
438 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\MessageHandler;
|
||
|
|
|
||
|
|
use App\Message\UpdateRdapServers;
|
||
|
|
use App\Service\RDAPService;
|
||
|
|
use Symfony\Component\Messenger\Attribute\AsMessageHandler;
|
||
|
|
|
||
|
|
#[AsMessageHandler]
|
||
|
|
final readonly class UpdateRdapServersHandler
|
||
|
|
{
|
||
|
|
|
||
|
|
public function __construct(private RDAPService $RDAPService)
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
public function __invoke(UpdateRdapServers $message): void
|
||
|
|
{
|
||
|
|
$this->RDAPService->updateRDAPServers();
|
||
|
|
}
|
||
|
|
}
|