This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/tests/fixtures/Symfony/Components/Console/FooCommand.php

34 lines
771 B
PHP
Raw Normal View History

2010-01-04 14:42:28 +00:00
<?php
2010-01-09 11:57:15 +00:00
use Symfony\Components\Console\Command\Command;
use Symfony\Components\Console\Input\InputInterface;
use Symfony\Components\Console\Output\OutputInterface;
2010-01-04 14:42:28 +00:00
class FooCommand extends Command
2010-01-04 14:42:28 +00:00
{
public $input;
public $output;
2010-01-04 14:42:28 +00:00
protected function configure()
{
$this
->setName('foo:bar')
->setDescription('The foo:bar command')
->setAliases(array('afoobar'))
;
}
2010-01-04 14:42:28 +00:00
protected function interact(InputInterface $input, OutputInterface $output)
{
$output->writeln('interact called');
}
2010-01-04 14:42:28 +00:00
protected function execute(InputInterface $input, OutputInterface $output)
{
$this->input = $input;
$this->output = $output;
2010-01-04 14:42:28 +00:00
$output->writeln('called');
}
2010-01-04 14:42:28 +00:00
}