\app\framework\Component\Console\CommandLoaderCommandLoader

Summary

Methods
Properties
Constants
__construct()
get()
has()
getNames()
registerByPath()
add()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
register()
load()
$registeredCommands
$defaultCommandPaths
N/A

Properties

$registeredCommands

$registeredCommands : 

Type

$defaultCommandPaths

$defaultCommandPaths : 

Type

Methods

__construct()

__construct() 

CommandLoader constructor.

get()

get(string  $name) : \app\framework\Component\Console\Command\Command

Loads a Command.

Parameters

string $name

Throws

\app\framework\Component\Console\Exception\CommandNotFoundException

Returns

\app\framework\Component\Console\Command\Command

has()

has(string  $name) : boolean

Checks if an command exists.

Parameters

string $name

Returns

boolean

getNames()

getNames() : array<mixed,String>

Returns

array<mixed,String> —

All registered command names

registerByPath()

registerByPath(  $path) 

Register path of file to register Command.

Parameters

$path

Throws

\app\framework\Component\Console\Exception\CommandNotFoundException