3 namespace DrupalComposer\DrupalScaffold;
5 use Composer\Command\BaseCommand;
6 use Symfony\Component\Console\Input\InputInterface;
7 use Symfony\Component\Console\Output\OutputInterface;
10 * The "drupal:scaffold" command class.
12 * Downloads scaffold files and generates the autoload.php file.
14 class DrupalScaffoldCommand extends BaseCommand {
19 protected function configure() {
22 ->setName('drupal:scaffold')
23 ->setDescription('Update the Drupal scaffold files.');
29 protected function execute(InputInterface $input, OutputInterface $output) {
30 $handler = new Handler($this->getComposer(), $this->getIO());
31 $handler->downloadScaffold();
32 // Generate the autoload.php file after generating the scaffold files.
33 $handler->generateAutoload();