Pull merge.
[yaffs-website] / web / core / scripts / drupal
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();