# FoxyEvents

> Defines the lifecycle events dispatched while Foxy solves asset dependencies.

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

| abstract class | `Foxy\FoxyEvents` |
| --- | --- |
| Source | [`src/FoxyEvents.php`](https://github.com/php-forge/foxy/blob/main/src/FoxyEvents.php#L10) |

Defines the lifecycle events dispatched while Foxy solves asset dependencies.

## Constants

| Constant | Value | Description | Defined by |
| --- | --- | --- | --- |
| <span id="const-GET_ASSETS"></span>`GET_ASSETS` | `'foxy.get-assets'` | The `GET_ASSETS` event is triggered before the `solve` action of asset packages and while retrieving the map of the asset packages. | `FoxyEvents` |
| <span id="const-POST_SOLVE"></span>`POST_SOLVE` | `'foxy.post-solve'` | The `POST_SOLVE` event is triggered after the `solve` action of asset packages and before the execution of the composer's fallback. | `FoxyEvents` |
| <span id="const-PRE_SOLVE"></span>`PRE_SOLVE` | `'foxy.pre-solve'` | The `PRE_SOLVE` event is triggered before the `solve` action of asset packages. | `FoxyEvents` |