Patched to Drupal 8.4.8 level. See https://www.drupal.org/sa-core-2018-004 and patch...
[yaffs-website] / vendor / drush / drush / lib / Drush / Command / ServiceCommandlist.php
1 <?php
2 namespace Drush\Command;
3
4 use Drush\Log\LogLevel;
5
6 /**
7  * Keep a list of all of the service commands that we can find when the
8  * Drupal Kernel is booted.
9  */
10 class ServiceCommandlist {
11     protected $commandList = [];
12
13     public function addCommandReference($command)
14     {
15         drush_log(dt("add command reference"), LogLevel::DEBUG);
16         $this->commandList[] = $command;
17     }
18
19     public function getCommandList()
20     {
21         return $this->commandList;
22     }
23 }