Elgg  Version 3.0
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
$output
Definition: Cli.php:37
$input
Definition: Cli.php:32
setup(InputInterface $input, OutputInterface $output)
Configure input and output.
Definition: Application.php:21