Documentation

ContainerCommandLoader
in package
implements CommandLoaderInterface

Loads commands from a PSR-11 container.

Tags
author

Robin Chalas robin.chalas@gmail.com

Table of Contents

Interfaces

CommandLoaderInterface

Properties

$commandMap  : mixed
$container  : mixed

Methods

__construct()  : mixed
get()  : Command
Loads a command.
getNames()  : array<string|int, string>
has()  : bool
Checks if a command exists.

Properties

Methods

getNames()

public getNames() : array<string|int, string>
Return values
array<string|int, string>

All registered command names

has()

Checks if a command exists.

public has(mixed $name) : bool
Parameters
$name : mixed
Return values
bool

        
On this page

Search results