annotate core/scripts/drupal @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 129ea1e6d783
children
rev   line source
Chris@17 1 #!/usr/bin/env php
Chris@17 2 <?php
Chris@17 3
Chris@17 4 /**
Chris@17 5 * @file
Chris@17 6 * Provides CLI commands for Drupal.
Chris@17 7 */
Chris@17 8
Chris@17 9 use Drupal\Core\Command\QuickStartCommand;
Chris@17 10 use Drupal\Core\Command\InstallCommand;
Chris@17 11 use Drupal\Core\Command\ServerCommand;
Chris@17 12 use Symfony\Component\Console\Application;
Chris@17 13
Chris@17 14 if (PHP_SAPI !== 'cli') {
Chris@17 15 return;
Chris@17 16 }
Chris@17 17
Chris@17 18 $classloader = require_once __DIR__ . '/../../autoload.php';
Chris@17 19
Chris@17 20 $application = new Application('drupal', \Drupal::VERSION);
Chris@17 21
Chris@17 22 $application->add(new QuickStartCommand());
Chris@17 23 $application->add(new InstallCommand($classloader));
Chris@17 24 $application->add(new ServerCommand($classloader));
Chris@17 25
Chris@17 26 $application->run();