DevToolsCommandProvider

Class
implements CommandProvider
Read only: Yes Final: Yes

Provides a registry of custom dev-tools commands mapped for Composer integration.

Description

This capability struct MUST implement the defined CommandProvider.

Table of Contents

Interfaces

Constants

 = 'FastForward\DevTools\Console\Command'

Properties

Methods

 : mixed
getCommands()

{@inheritDoc}

 : mixed
getComposerAliases()

Returns command aliases that may be safely exposed to Composer.

 : array<int, string>
isRegisteredCommand()

Detects names already owned by Composer's active command surface.

 : bool
Constants

Constants

COMMAND_NAMESPACE

Private
private string COMMAND_NAMESPACE = 'FastForward\DevTools\Console\Command'

Description

the namespace prefix for dev-tools console commands to be registered as Composer commands

Properties
Methods

__construct()

Public
public __construct([ array<string, mixed>  $constructorArguments = []]) : mixed
Parameters
$constructorArguments : array<string, mixed> = []

Description

the Composer capability constructor arguments

getComposerAliases()

Private

Returns command aliases that may be safely exposed to Composer.

private getComposerAliases(Command  $command) : array<int, string>
Parameters
$command : Command

Description

the Symfony command being proxied

Return values
array<int, string>

isRegisteredCommand()

Private

Detects names already owned by Composer's active command surface.

private isRegisteredCommand( string|null  $name) : bool
Parameters
$name : string|null

Description

the command name or alias being evaluated

Return values
bool