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  : array<string|int, mixed>
$container  : ContainerInterface

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>

has()

Checks if a command exists.

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

        
On this page

Search results