Files
nette-vite/app/model/Console/HelloCommand.php
2022-03-12 16:25:30 +01:00

26 lines
506 B
PHP
Executable File

<?php declare(strict_types = 1);
namespace App\Model\Console;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class HelloCommand extends Command
{
protected function configure(): void
{
$this->setName('hello');
$this->setDescription('Hello world!');
}
protected function execute(InputInterface $input, OutputInterface $output): int
{
$output->write('Hello world!');
return 0;
}
}