feat: hello PostgreSQL

This commit is contained in:
Maël Gangloff
2024-07-26 21:10:06 +02:00
parent 467d0efa1c
commit f72f6df546
15 changed files with 142 additions and 437 deletions

View File

@@ -5,11 +5,10 @@ namespace App\Command;
use App\Message\UpdateRdapServers;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
use Symfony\Component\Messenger\Exception\ExceptionInterface;
use Symfony\Component\Messenger\MessageBusInterface;
#[AsCommand(
@@ -18,7 +17,7 @@ use Symfony\Component\Messenger\MessageBusInterface;
)]
class UpdateRdapServersCommand extends Command
{
public function __construct(private MessageBusInterface $bus)
public function __construct(private readonly MessageBusInterface $bus)
{
parent::__construct();
}
@@ -27,6 +26,9 @@ class UpdateRdapServersCommand extends Command
{
}
/**
* @throws ExceptionInterface
*/
protected function execute(InputInterface $input, OutputInterface $output): int
{
$io = new SymfonyStyle($input, $output);