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/CLI/TestTask.php

44 lines
868 B
PHP
Raw Normal View History

2010-01-04 14:42:28 +00:00
<?php
use Symfony\Components\CLI\Task\Task;
use Symfony\Components\CLI\Input\InputInterface;
use Symfony\Components\CLI\Output\OutputInterface;
class TestTask extends Task
{
protected function configure()
{
$this
->setName('namespace:name')
->setAliases(array('name'))
->setDescription('description')
->setHelp('help')
;
}
public function mergeApplicationDefinition()
{
return parent::mergeApplicationDefinition();
}
public function getApplication()
{
return $this->application;
}
public function getDefinition()
{
return $this->definition;
}
protected function execute(InputInterface $input, OutputInterface $output)
{
$output->write('execute called');
}
protected function interact(InputInterface $input, OutputInterface $output)
{
$output->write('interact called');
}
}