Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CompleteCommand.php

function CompleteCommand::__construct

Parameters

array<string, class-string<CompletionOutputInterface>> $completionOutputs A list of additional completion outputs, with shell name as key and FQCN as value:

Overrides Command::__construct

File

vendor/symfony/console/Command/CompleteCommand.php, line 43

Class

CompleteCommand
Responsible for providing the values to the shell completion.

Namespace

Symfony\Component\Console\Command

Code

public function __construct(array $completionOutputs = []) {
    // must be set before the parent constructor, as the property value is used in configure()
    $this->completionOutputs = $completionOutputs + [
        'bash' => BashCompletionOutput::class,
        'fish' => FishCompletionOutput::class,
        'zsh' => ZshCompletionOutput::class,
    ];
    parent::__construct();
}
RSS feed
Powered by Drupal