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

Breadcrumb

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

function Application::addCommands

Adds an array of command objects.

If a Command is not enabled it will not be added.

Parameters

Command[] $commands An array of commands:

File

vendor/symfony/console/Application.php, line 526

Class

Application
An Application is the container for a collection of commands.

Namespace

Symfony\Component\Console

Code

public function addCommands(array $commands) : void {
    foreach ($commands as $command) {
        $this->add($command);
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal