You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
771 B
PHP
31 lines
771 B
PHP
<?php
|
|
|
|
namespace jrosset\Tests\Commands;
|
|
|
|
use jrosset\CliProgram\BaseCommand;
|
|
use Symfony\Component\Console\Command\Command;
|
|
use Symfony\Component\Console\Input\InputInterface;
|
|
use Symfony\Component\Console\Output\OutputInterface;
|
|
|
|
class Hello extends BaseCommand {
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
protected static $defaultDescription = 'Say hello';
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function __construct () {
|
|
parent::__construct('hello', 'bonjour');
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
protected function execute (InputInterface $input, OutputInterface $output): int {
|
|
$output->writeln('Command : ' . __CLASS__, OutputInterface::VERBOSITY_DEBUG);
|
|
$output->writeln('Hello !');
|
|
return Command::SUCCESS;
|
|
}
|
|
} |