Files
domain-watchdog/src/Controller/TestController.php

29 lines
613 B
PHP
Raw Normal View History

2024-07-12 13:16:40 +02:00
<?php
namespace App\Controller;
2024-07-13 23:57:07 +02:00
use App\Service\RDAPService;
2024-07-12 13:16:40 +02:00
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
class TestController extends AbstractController
{
2024-07-13 23:57:07 +02:00
public function __construct(
private readonly RDAPService $RDAPService
)
2024-07-12 19:03:06 +02:00
{
}
2024-07-13 19:23:42 +02:00
#[Route(path: '/test/register/{fqdn}', name: 'test_register_domain')]
public function testRegisterDomain(string $fqdn): Response
2024-07-12 13:16:40 +02:00
{
2024-07-13 23:57:07 +02:00
$this->RDAPService->registerDomain($fqdn);
return new Response();
2024-07-12 19:03:06 +02:00
}
2024-07-12 13:16:40 +02:00
}