You are here

public function SymfonyStyle::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Style/SymfonyStyle.php \Symfony\Component\Console\Style\SymfonyStyle::__construct()

Parameters

InputInterface $input:

OutputInterface $output:

Overrides OutputStyle::__construct

File

vendor/symfony/console/Style/SymfonyStyle.php, line 46

Class

SymfonyStyle
Output decorator helpers for the Symfony Style Guide.

Namespace

Symfony\Component\Console\Style

Code

public function __construct(InputInterface $input, OutputInterface $output) {
  $this->input = $input;
  $this->bufferedOutput = new BufferedOutput($output
    ->getVerbosity(), false, clone $output
    ->getFormatter());

  // Windows cmd wraps lines as soon as the terminal width is reached, whether there are following chars or not.
  $this->lineLength = min($this
    ->getTerminalWidth() - (int) (DIRECTORY_SEPARATOR === '\\'), self::MAX_LINE_LENGTH);
  parent::__construct($output);
}