legacyRecord(); } $invocations[] = [ 'site' => $site_alias_record, 'command' => $command_name, 'args' => $commandline_args ]; $invoke_multiple = drush_get_option_override($backend_options, 'invoke-multiple', 0); if ($invoke_multiple) { $invocations = array_fill(0, $invoke_multiple, $invocations[0]); } return drush_backend_invoke_concurrent($invocations, $commandline_options, $backend_options); } /** * Substrings to ignore during commandfile and site alias searching. * TODO: Do we do any searching in the new code that should be filtered like this? */ function drush_filename_blacklist() { $blacklist = ['.', '..', 'drush_make', 'examples', 'tests', 'disabled', 'gitcache', 'cache']; for ($v=4; $v<=(DRUSH_MAJOR_VERSION)+3; ++$v) { if ($v != DRUSH_MAJOR_VERSION) { $blacklist[] = 'drush' . $v; } } $blacklist = array_merge($blacklist, drush_get_option_list('exclude')); return $blacklist; }