comparison core/scripts/drupal @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
1 #!/usr/bin/env php
2 <?php
3
4 /**
5 * @file
6 * Provides CLI commands for Drupal.
7 */
8
9 use Drupal\Core\Command\QuickStartCommand;
10 use Drupal\Core\Command\InstallCommand;
11 use Drupal\Core\Command\ServerCommand;
12 use Symfony\Component\Console\Application;
13
14 if (PHP_SAPI !== 'cli') {
15 return;
16 }
17
18 $classloader = require_once __DIR__ . '/../../autoload.php';
19
20 $application = new Application('drupal', \Drupal::VERSION);
21
22 $application->add(new QuickStartCommand());
23 $application->add(new InstallCommand($classloader));
24 $application->add(new ServerCommand($classloader));
25
26 $application->run();