Beispiel #1
0
 /**
  * Adds some output formatters.
  *
  * @param OutputFormatterInterface
  */
 private function configureFormatters(OutputFormatterInterface $formatter)
 {
     $formatter->setStyle('title', new OutputFormatterStyle('white', null, array('bold')));
     $formatter->setStyle('description', new OutputFormatterStyle(null, null, array()));
 }
Beispiel #2
0
 /**
  * Setup the formatter.
  *
  * @param OutputFormatterInterface $formatter
  */
 protected function setupFormatters(OutputFormatterInterface $formatter)
 {
     $formatter->setStyle('file', new OutputFormatterStyle('white', 'default', ['bold']));
     $formatter->setStyle('source', new OutputFormatterStyle('blue', 'default', []));
     $formatter->setStyle('success', new OutputFormatterStyle('white', 'green', []));
 }
 public function applyTo(OutputFormatterInterface $outputFormatter)
 {
     foreach ($this->styles as $name => $style) {
         $outputFormatter->setStyle($name, $style);
     }
 }
 /**
  * {@inheritdoc}
  */
 public function setStyle($name, OutputFormatterStyleInterface $style)
 {
     return $this->formatter->setStyle($name, $style);
 }