Version 1
[yaffs-website] / vendor / drush / drush / lib / Drush / Commands / core / StatusCommands.php
1 <?php
2
3 namespace Drush\Commands\core;
4
5 use Consolidation\OutputFormatters\StructuredData\AssociativeList;
6
7 class StatusCommands {
8
9   /**
10    * @command new-status
11    *
12    * @field-labels
13    *   drupal-version: Drupal version
14    *   uri: Site URI
15    *   db-driver: Database driver
16    *   db-hostname: Database hostname
17    *   db-port: Database port
18    *   db-username: Database username
19    *   db-password: Database password
20    *   db-name: Database name
21    *   db-status: Database
22    *   bootstrap: Drupal bootstrap
23    *   user: Drupal user
24    *   theme: Default theme
25    *   admin-theme: Administration theme
26    *   php-bin: PHP executable
27    *   php-conf: PHP configuration
28    *   php-os: PHP OS
29    *   drush-script: Drush script
30    *   drush-version: Drush version
31    *   drush-temp: Drush temp directory
32    *   drush-conf: Drush configuration
33    *   drush-alias-files: Drush alias files
34    *   install-profile: Install profile
35    *   root: Drupal root
36    *   drupal-settings-file: Drupal Settings File
37    *   site-path: Site path
38    *   root: Drupal root
39    *   site: Site path
40    *   themes: Themes path
41    *   modules: Modules path
42    *   files: File directory path
43    *   private: Private file directory path
44    *   temp: Temporary file directory path
45    *   config-sync: Sync config path
46    *   files-path: File directory path
47    *   temp-path: Temporary file directory path
48    *   %paths: Other paths
49    *
50    * @topics docs-readme
51    */
52   public function status($options = ['project' => '', 'format' => 'table', 'fields' => '']) {
53     $data = _core_site_status_table($options['project']);
54
55     return new AssociativeList($data);
56   }
57 }
58