Elgg  Version master
Application.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Cli;
4 
7 
11 class Application extends \Symfony\Component\Console\Application {
12 
21  public function setup(InputInterface $input, OutputInterface $output) {
22  $this->configureIO($input, $output);
23 
24  if (!$output->isDecorated() && !$input->hasParameterOption(['--no-ansi'], true)) {
25  $output->setDecorated(true);
26  }
27  }
28 }
Wrapper for console application.
Definition: Application.php:11
$input
Form field view.
Definition: field.php:13
setup(InputInterface $input, OutputInterface $output)
Configure input and output.
Definition: Application.php:21
$output
Definition: download.php:9