\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

$console

$console : \think\Console

Type

Console

$namespace

$namespace : null|string

Type

null|string

$namespaces

$namespaces : array

Type

array

$commands

$commands : \think\console\Command[]

Type

Command[]

$aliases

$aliases : \think\console\Command[]

Type

Command[]

Methods

__construct()

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

构造方法

Parameters

\think\Console $console
string|null $namespace

Returns

mixed —

getNamespaces()

getNamespaces() : array

Returns

array —

getCommands()

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

Returns

\think\console\Command[] —

getCommand()

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

Parameters

string $name

Throws

\InvalidArgumentException

Returns

\think\console\Command —

inspectConsole()

inspectConsole() : mixed

Returns

mixed —

sortCommands()

sortCommands(array  $commands) : array

Parameters

array $commands

Returns

array —