Esempio n. 1
0
 public function __construct(InputInterface $input, OutputInterface $output)
 {
     $this->input = $input;
     $this->bufferedOutput = new BufferedOutput($output->getVerbosity(), false, clone $output->getFormatter());
     $this->lineLength = min($this->getTerminalWidth() - (int) (DIRECTORY_SEPARATOR === '\\'), self::MAX_LINE_LENGTH);
     parent::__construct($output);
 }
Esempio n. 2
0
 /**
  * @param InputInterface $input
  * @param OutputInterface $output
  */
 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);
 }
 /**
  * @param InputInterface  $input
  * @param OutputInterface $output
  */
 public function __construct(InputInterface $input, OutputInterface $output, $lineLengthMax = 160)
 {
     $this->input = $input;
     $this->output = $output;
     $this->outputBuffered = new BufferedOutput($output->getVerbosity(), false, clone $output->getFormatter());
     $this->lineLengthMax = $lineLengthMax;
     $this->lineLength = $this->lineLength();
     parent::__construct($output);
     $this->getFormatter()->setStyle('highlight', new OutputFormatterStyle('magenta'));
     $this->getFormatter()->setStyle('em', new OutputFormatterStyle(null, null, ['bold']));
     $this->getFormatter()->setStyle('success', new OutputFormatterStyle('black', 'green'));
 }
 /**
  * @param InputInterface  $input
  * @param OutputInterface $output
  */
 public function __construct(InputInterface $input, OutputInterface $output)
 {
     $this->input = $input;
     $this->lineLength = min($this->getTerminalWidth(), self::MAX_LINE_LENGTH);
     parent::__construct($output);
 }