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

Breadcrumb

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

function LazyCommand::__construct

Overrides Command::__construct

File

vendor/symfony/console/Command/LazyCommand.php, line 31

Class

LazyCommand
@author Nicolas Grekas <p@tchwork.com>

Namespace

Symfony\Component\Console\Command

Code

public function __construct(string $name, array $aliases, string $description, bool $isHidden, \Closure $commandFactory, ?bool $isEnabled = true) {
    $this->setName($name)
        ->setAliases($aliases)
        ->setHidden($isHidden)
        ->setDescription($description);
    $this->command = $commandFactory;
}
RSS feed
Powered by Drupal