Mercurial > hg > isophonics-drupal-site
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/scripts/drupal Thu Feb 28 13:21:36 2019 +0000 @@ -0,0 +1,26 @@ +#!/usr/bin/env php +<?php + +/** + * @file + * Provides CLI commands for Drupal. + */ + +use Drupal\Core\Command\QuickStartCommand; +use Drupal\Core\Command\InstallCommand; +use Drupal\Core\Command\ServerCommand; +use Symfony\Component\Console\Application; + +if (PHP_SAPI !== 'cli') { + return; +} + +$classloader = require_once __DIR__ . '/../../autoload.php'; + +$application = new Application('drupal', \Drupal::VERSION); + +$application->add(new QuickStartCommand()); +$application->add(new InstallCommand($classloader)); +$application->add(new ServerCommand($classloader)); + +$application->run();