Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Application
✓ use Symfony\Component\Console\Application;
Creating a CLI application with Symfony Console
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
$app = new Application();
$app->add(new class extends Command {
protected function configure(): void
{
$this->setName('hello');
}
protected function execute(InputInterface $input, OutputInterface $output): int
{
$output->writeln('Hello World');
return Command::SUCCESS;
}
});
$app->run();
Audit
Dependencies
No dependency data recorded yet.