drupal 659 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env php
  2. <?php
  3. /**
  4. * @file
  5. * Provides CLI commands for Drupal.
  6. */
  7. use Drupal\Core\Command\GenerateTheme;
  8. use Drupal\Core\Command\QuickStartCommand;
  9. use Drupal\Core\Command\InstallCommand;
  10. use Drupal\Core\Command\ServerCommand;
  11. use Symfony\Component\Console\Application;
  12. if (PHP_SAPI !== 'cli') {
  13. return;
  14. }
  15. $classloader = require_once __DIR__ . '/../../autoload.php';
  16. $application = new Application('drupal', \Drupal::VERSION);
  17. $application->add(new QuickStartCommand());
  18. $application->add(new InstallCommand($classloader));
  19. $application->add(new ServerCommand($classloader));
  20. $application->add(new GenerateTheme());
  21. $application->run();