drupal 580 B

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