function commandfiles_cache

8.0.x command.inc commandfiles_cache()
7.x command.inc commandfiles_cache()
master command.inc commandfiles_cache()
4 calls to commandfiles_cache()
DrupalBoot::drush_command_belongs_to_disabled_module in lib/Drush/Boot/DrupalBoot.php
Check if the given command belongs to a disabled module.
drush_autoload in includes/bootstrap.inc
Used by a Drush extension to request that its Composer autoload files be loaded by Drush, if they have not already been.
drush_commandfile_list in includes/command.inc
Collect a list of all available drush command files.
_drush_add_commandfiles in includes/command.inc

File

includes/command.inc, line 1910
The drush command engine.

Code

function commandfiles_cache() {
  static $commandfiles_cache = NULL;

  if (!isset($commandfiles_cache)) {
    $commandfiles_cache = new Drush\Command\Commandfiles();
  }
  return $commandfiles_cache;
}