24 lines
618 B
PHP
Executable File
24 lines
618 B
PHP
Executable File
<?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;
|
|
}
|
|
}
|