final class CommandRegistry (View source)

The commands bin/poweradmin knows, keyed by name. Each entry is a factory that builds the command from the booted service graph.

Methods

__construct(array $commands)

No description

static CommandRegistry
default()

No description

bool
has(string $name)

No description

array
names()

No description

string
description(string $name)

No description

array
options(string $name)

No description

create(string $name, ControllerServiceFactory $services)

No description

Details

__construct(array $commands)

No description

Parameters

array $commands

static CommandRegistry default()

No description

Return Value

CommandRegistry

bool has(string $name)

No description

Parameters

string $name

Return Value

bool

array names()

No description

Return Value

array

string description(string $name)

No description

Parameters

string $name

Return Value

string

array options(string $name)

No description

Parameters

string $name

Return Value

array

CommandInterface create(string $name, ControllerServiceFactory $services)

No description

Parameters

string $name
ControllerServiceFactory $services

Return Value

CommandInterface