Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
36
vendor/drupal-composer/drupal-scaffold/src/DrupalScaffoldCommand.php
vendored
Normal file
36
vendor/drupal-composer/drupal-scaffold/src/DrupalScaffoldCommand.php
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
|
||||
namespace DrupalComposer\DrupalScaffold;
|
||||
|
||||
use Composer\Command\BaseCommand;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
/**
|
||||
* The "drupal:scaffold" command class.
|
||||
*
|
||||
* Downloads scaffold files and generates the autoload.php file.
|
||||
*/
|
||||
class DrupalScaffoldCommand extends BaseCommand {
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function configure() {
|
||||
parent::configure();
|
||||
$this
|
||||
->setName('drupal:scaffold')
|
||||
->setDescription('Update the Drupal scaffold files.');
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function execute(InputInterface $input, OutputInterface $output) {
|
||||
$handler = new Handler($this->getComposer(), $this->getIO());
|
||||
$handler->downloadScaffold();
|
||||
// Generate the autoload.php file after generating the scaffold files.
|
||||
$handler->generateAutoload();
|
||||
}
|
||||
|
||||
}
|
Reference in a new issue