\Symfony\Component\Console\CommandLoaderContainerCommandLoader

Loads commands from a PSR-11 container.

Summary

Methods
Properties
Constants
__construct()
get()
has()
getNames()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$container
$commandMap
N/A

Properties

$container

$container : 

Type

$commandMap

$commandMap : 

Type

Methods

__construct()

__construct(\Psr\Container\ContainerInterface  $container, array  $commandMap) 

Parameters

\Psr\Container\ContainerInterface $container

A container from which to load command services

array $commandMap

An array with command names as keys and service ids as values

has()

has(string  $name) : boolean

Checks if a command exists.

Parameters

string $name

Returns

boolean

getNames()

getNames() : array<mixed,string>

Returns

array<mixed,string> —

All registered command names