PHP Class think\console\output\descriptor\Console

Exibir arquivo Open project: top-think/framework Class Usage Examples

Public Methods

Method Description
__construct ( Console $console, string | null $namespace = null ) 构造方法
getCommand ( string $name ) : Command
getCommands ( ) : Command[]
getNamespaces ( ) : array

Private Methods

Method Description
inspectConsole ( )
sortCommands ( array $commands ) : array

Method Details

__construct() public method

构造方法
public __construct ( Console $console, string | null $namespace = null )
$console think\Console
$namespace string | null

getCommand() public method

public getCommand ( string $name ) : Command
$name string
return think\console\Command

getCommands() public method

public getCommands ( ) : Command[]
return think\console\Command[]

getNamespaces() public method

public getNamespaces ( ) : array
return array