# FoxyCommandProvider

> Provides Foxy's Composer console commands.

[API reference](/docs/api/index.md) › [Foxy](/docs/extensions/foxy/reference/index.md) › [Command](/docs/extensions/foxy/reference/command/index.md) › FoxyCommandProvider

| final readonly class | `Foxy\Command\FoxyCommandProvider` |
| --- | --- |
| Implements | `Composer\Plugin\Capability\CommandProvider` |
| Source | [`src/Command/FoxyCommandProvider.php`](https://github.com/php-forge/foxy/blob/main/src/Command/FoxyCommandProvider.php#L17) |

Provides Foxy's Composer console commands.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Creates the provider from Composer's capability arguments. | `FoxyCommandProvider` |
| [`getCommands()`](#method-getCommands) | Returns the Foxy commands configured with the active Composer context. | `FoxyCommandProvider` |

## Method details

### __construct() <span id="method-__construct"></span>

```php
public function __construct(array<string, mixed> $arguments)
```

Creates the provider from Composer's capability arguments.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$arguments` | `array<string, mixed>` | Composer, I/O, and plugin instances supplied by Composer. |

### getCommands() <span id="method-getCommands"></span>

```php
public function getCommands(): list<Composer\Command\BaseCommand>
```

Returns the Foxy commands configured with the active Composer context.

**Returns**

`list<Composer\Command\BaseCommand>`