Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
CommandList Class Reference
Inheritance diagram for CommandList:
CommandListInterface

Public Member Functions

 __construct (array $commands=[])
 
 getCommands ()
 

Protected Attributes

 $commands
 

Detailed Description

Class CommandList has a list of commands, which can be extended via DI configuration.

Definition at line 12 of file CommandList.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( array  $commands = [])

Constructor

Parameters
array$commands

Definition at line 24 of file CommandList.php.

25  {
26  $this->commands = $commands;
27  }

Member Function Documentation

◆ getCommands()

getCommands ( )

{Gets list of command instances

Returns
\Symfony\Component\Console\Command\Command[]
}

Implements CommandListInterface.

Definition at line 32 of file CommandList.php.

Field Documentation

◆ $commands

$commands
protected

Definition at line 17 of file CommandList.php.


The documentation for this class was generated from the following file: