\think\console\output\descriptorConsole

Summary

Methods
Properties
Constants
__construct()
getNamespaces()
getCommands()
getCommand()
No public properties found
GLOBAL_NAMESPACE
No protected methods found
No protected properties found
N/A
inspectConsole()
sortCommands()
$console
$namespace
$namespaces
$commands
$aliases
N/A

Constants

GLOBAL_NAMESPACE

GLOBAL_NAMESPACE = '_global'

Properties

$namespace

$namespace : null|string

Type

null|string

$namespaces

$namespaces : array

Type

array

Methods

__construct()

__construct(\think\Console  $console, string|null  $namespace = null) 

构造方法

Parameters

\think\Console $console
string|null $namespace

getNamespaces()

getNamespaces() : array

Returns

array

getCommands()

getCommands() : array<mixed,\think\console\Command>

Returns

array<mixed,\think\console\Command>

getCommand()

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

Parameters

string $name

Throws

\InvalidArgumentException

Returns

\think\console\Command

inspectConsole()

inspectConsole() 

sortCommands()

sortCommands(array  $commands) : array

Parameters

array $commands

Returns

array