First Commit
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
namespace App\Console\Command;
|
||||
|
||||
use Symfony\Component\Console\Command\Command;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
class SayHelloCommand extends Command
|
||||
{
|
||||
// Nome do comando no terminal
|
||||
protected static $defaultName = 'app:say-hello';
|
||||
|
||||
protected function configure(): void
|
||||
{
|
||||
$this->setDescription('Exibe uma mensagem de saudação.');
|
||||
}
|
||||
|
||||
protected function execute(InputInterface $input, OutputInterface $output): int
|
||||
{
|
||||
$output->writeln('Hello, SysMVC!');
|
||||
return Command::SUCCESS;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user