Add new console system

This commit is contained in:
Gregory Letellier
2023-11-13 11:41:47 +01:00
parent 610ed871bb
commit 9eeb3d353d
5 changed files with 545 additions and 487 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Commands;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class TestCommand extends Command
{
protected static $defaultName = 'app:test';
protected static $defaultDescription = 'Test.';
protected function configure(): void
{
$this->setHelp('Test');
}
protected function execute(InputInterface $input, OutputInterface $output): int
{
$output->writeln("test");
return Command::SUCCESS;
}
}