Files
archived-console/Tests/Fixtures/LoopExampleCommand.php
2025-07-16 15:38:06 +02:00

29 lines
758 B
PHP

<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Console\Tests\Fixtures;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
#[AsCommand('app:loop:example')]
class LoopExampleCommand extends AbstractLoopCommand
{
protected function execute(InputInterface $input, OutputInterface $output): int
{
$output->writeln(' Hello world');
return Command::SUCCESS;
}
}