AbstractSolveEvent
API reference › Foxy › Event › AbstractSolveEvent
3 subclasses
Carries the asset directory and installed packages through the solve lifecycle.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a solve lifecycle event. | AbstractSolveEvent |
getAssetDir() | Get the directory of mock assets. | AbstractSolveEvent |
getPackages() | Get the installed Composer packages. | AbstractSolveEvent |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $name, string $assetDir, Composer\Package\PackageInterface[] $packages = [])Creates a solve lifecycle event.
Parameters
| Parameter | Type | Description |
|---|---|---|
$name | string | The event name. |
$assetDir | string | The directory of mock assets. |
$packages | Composer\ | All installed Composer packages. |
getAssetDir()
Section titled “getAssetDir() ”public function getAssetDir(): stringGet the directory of mock assets.
Returns
string
getPackages()
Section titled “getPackages() ”public function getPackages(): arrayGet the installed Composer packages.
Returns
array