class ComposerScaffoldCommand
Same name in other branches
- 9 composer/Plugin/Scaffold/ComposerScaffoldCommand.php \Drupal\Composer\Plugin\Scaffold\ComposerScaffoldCommand
- 10 composer/Plugin/Scaffold/ComposerScaffoldCommand.php \Drupal\Composer\Plugin\Scaffold\ComposerScaffoldCommand
- 11.x composer/Plugin/Scaffold/ComposerScaffoldCommand.php \Drupal\Composer\Plugin\Scaffold\ComposerScaffoldCommand
The "drupal:scaffold" command class.
Manually run the scaffold operation that normally happens after 'composer install'.
@internal
Hierarchy
- class \Drupal\Composer\Plugin\Scaffold\ComposerScaffoldCommand extends \Composer\Command\BaseCommand
Expanded class hierarchy of ComposerScaffoldCommand
File
-
composer/
Plugin/ Scaffold/ ComposerScaffoldCommand.php, line 17
Namespace
Drupal\Composer\Plugin\ScaffoldView source
class ComposerScaffoldCommand extends BaseCommand {
/**
* {@inheritdoc}
*/
protected function configure() {
$this->setName('drupal:scaffold')
->setAliases([
'scaffold',
])
->setDescription('Update the Drupal scaffold files.')
->setHelp(<<<EOT
The <info>drupal:scaffold</info> command places the scaffold files in their
respective locations according to the layout stipulated in the composer.json
file.
<info>php composer.phar drupal:scaffold</info>
It is usually not necessary to call <info>drupal:scaffold</info> manually,
because it is called automatically as needed, e.g. after an <info>install</info>
or <info>update</info> command. Note, though, that only packages explicitly
allowed to scaffold in the top-level composer.json will be processed by this
command.
For more information, see https://www.drupal.org/docs/develop/using-composer/using-drupals-composer-scaffold.
EOT
);
}
/**
* {@inheritdoc}
*/
protected function execute(InputInterface $input, OutputInterface $output) {
$handler = new Handler($this->getComposer(), $this->getIO());
$handler->scaffold();
return 0;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ComposerScaffoldCommand::configure | protected | function | |
ComposerScaffoldCommand::execute | protected | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.