pastebin

Paste Search Dynamic
Recent pastes
CLI commands for Drupal
  1. #!/usr/bin/env php
  2. <?php
  3.  
  4. /**
  5.  * @file
  6.  * Provides CLI commands for Drupal.
  7.  */
  8.  
  9. use DrupalCoreCommandQuickStartCommand;
  10. use DrupalCoreCommandInstallCommand;
  11. use DrupalCoreCommandServerCommand;
  12. use SymfonyComponentConsoleApplication;
  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();
Parsed in 0.021 seconds