public function dump(InputInterface $input, OutputInterface $output) {
    $this->input = $input;
    $this->output = $output;
    $formatter_style = new OutputFormatterStyle('black', 'cyan', []);
    $this->output->getFormatter()->setStyle('title', $formatter_style);

    $interactive = $input->isInteractive();

    // NULL means we should ask user for confirmation.
    if ($this->replace !== NULL) {
      $input->setInteractive(FALSE);
    }

    /** @var \DrupalCodeGenerator\Command\GeneratorInterface $command */
    $command = $this->getHelperSet()->getCommand();

    $dumped_files = $this->doDump($command->getAssets(), $command->getDirectory());

    $input->setInteractive($interactive);
    return $dumped_files;
  }
public function dump(InputInterface $input, OutputInterface $output) {
    $this->input = $input;
    $this->output = $output;
    $formatter_style = new OutputFormatterStyle('black', 'cyan', []);
    $this->output->getFormatter()->setStyle('title', $formatter_style);

    $interactive = $input->isInteractive();

    // NULL means we should ask user for confirmation.
    if ($this->replace !== NULL) {
      $input->setInteractive(FALSE);
    }

    /** @var \DrupalCodeGenerator\Command\GeneratorInterface $command */
    $command = $this->getHelperSet()->getCommand();

    $dumped_files = $this->doDump($command->getAssets(), $command->getDirectory());

    $input->setInteractive($interactive);
    return $dumped_files;
  }
public function dump ( InputInterface $ input , OutputInterface $ output ) { $ this -> input = $ input ; $ this -> output = $ output ; $ formatter_style = new OutputFormatterStyle ( 'black' , 'cyan' , [ ] ) ; $ this -> output -> getFormatter ( ) -> setStyle ( 'title' , $ formatter_style ) ; $ interactive = $ input -> isInteractive ( ) ; // NULL means we should ask user for confirmation. if ( $ this -> replace !== NULL ) { $ input -> setInteractive ( FALSE ) ; } /** @var \DrupalCodeGenerator\Command\GeneratorInterface $command */ $ command = $ this -> getHelperSet ( ) -> getCommand ( ) ; $ dumped_files = $ this -> doDump ( $ command -> getAssets ( ) , $ command -> getDirectory ( ) ) ; $ input -> setInteractive ( $ interactive ) ; return $ dumped_files ; }
Dumps the generated code to file system.

@param \Symfony\Component\Console\Input\InputInterface $input
Input instance.
@param \Symfony\Component\Console\Output\OutputInterface $output
Output instance.

@return array
List of created or updated files.
Dumps the generated code to file system .