Skip to content
PHP Ecosystem
Explore

FoxyCommandProvider

API reference › Foxy › Command › FoxyCommandProvider

final readonly classFoxy\Command\FoxyCommandProvider
ImplementsComposer\Plugin\Capability\CommandProvider
Sourcesrc/Command/FoxyCommandProvider.php

Provides Foxy’s Composer console commands.

MethodDescriptionDefined by
__construct()Creates the provider from Composer’s capability arguments.FoxyCommandProvider
getCommands()Returns the Foxy commands configured with the active Composer context.FoxyCommandProvider
public function __construct(array<string, mixed> $arguments)

Creates the provider from Composer’s capability arguments.

Parameters

ParameterTypeDescription
$argumentsarray<string, mixed>Composer, I/O, and plugin instances supplied by Composer.
public function getCommands(): list<Composer\Command\BaseCommand>

Returns the Foxy commands configured with the active Composer context.

Returns

list<Composer\Command\BaseCommand>