function ComposerScaffoldCommand::execute

Same name in other branches
  1. 9 composer/Plugin/Scaffold/ComposerScaffoldCommand.php \Drupal\Composer\Plugin\Scaffold\ComposerScaffoldCommand::execute()
  2. 8.9.x composer/Plugin/Scaffold/ComposerScaffoldCommand.php \Drupal\Composer\Plugin\Scaffold\ComposerScaffoldCommand::execute()
  3. 10 composer/Plugin/Scaffold/ComposerScaffoldCommand.php \Drupal\Composer\Plugin\Scaffold\ComposerScaffoldCommand::execute()

File

composer/Plugin/Scaffold/ComposerScaffoldCommand.php, line 50

Class

ComposerScaffoldCommand
The "drupal:scaffold" command class.

Namespace

Drupal\Composer\Plugin\Scaffold

Code

protected function execute(InputInterface $input, OutputInterface $output) : int {
    $handler = new Handler($this->requireComposer(), $this->getIO());
    $handler->scaffold();
    return 0;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.