mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-26 14:15:45 +00:00
19 lines
388 B
PHP
19 lines
388 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Controller;
|
||
|
|
|
||
|
|
use App\Service\RDAPService;
|
||
|
|
use Exception;
|
||
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||
|
|
|
||
|
|
class DomainRefreshController extends AbstractController
|
||
|
|
{
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @throws Exception
|
||
|
|
*/
|
||
|
|
public function __invoke(string $ldhName, RDAPService $RDAPService): void
|
||
|
|
{
|
||
|
|
$RDAPService->registerDomains([$ldhName]);
|
||
|
|
}
|
||
|
|
}
|