__construct() public method

public __construct ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
Esempio n. 1
0
 public function __construct(InputInterface $input, OutputInterface $output)
 {
     parent::__construct($input, $output);
     $ref = new \ReflectionProperty(get_parent_class($this), 'lineLength');
     $ref->setAccessible(true);
     $ref->setValue($this, 120);
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 public function __construct(InputInterface $input, OutputInterface $output)
 {
     parent::__construct($input, $output);
     // Create style notes.
     $style = new OutputFormatterStyle('yellow');
     $output->getFormatter()->setStyle('note', $style);
     // Create style for database objects.
     $style = new OutputFormatterStyle('green', null, ['bold']);
     $output->getFormatter()->setStyle('dbo', $style);
     // Create style for file and directory names.
     $style = new OutputFormatterStyle(null, null, ['bold']);
     $output->getFormatter()->setStyle('fso', $style);
     // Create style for SQL statements.
     $style = new OutputFormatterStyle('magenta', null, ['bold']);
     $output->getFormatter()->setStyle('sql', $style);
 }
Esempio n. 3
0
 /**
  * Create a new Console OutputStyle instance.
  *
  * @param \Symfony\Component\Console\Input\InputInterface $input        	
  * @param \Symfony\Component\Console\Output\OutputInterface $output        	
  * @return void
  */
 public function __construct(InputInterface $input, OutputInterface $output)
 {
     $this->output = $output;
     parent::__construct($input, $output);
 }
 /**
  * TerminusStyle constructor.
  *
  * @param \Symfony\Component\Console\Input\InputInterface $input
  * @param \Symfony\Component\Console\Output\OutputInterface $output
  */
 public function __construct(InputInterface $input, OutputInterface $output)
 {
     ProgressBar::setFormatDefinition('normal', self::NORMAL_PROGRESS_FORMAT);
     parent::__construct($input, $output);
 }