PostSolveEvent
API reference › Foxy › Event › PostSolveEvent
Reports the asset-manager result after dependency solving.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates the post-solve event. | PostSolveEvent |
getAssetDir() | Get the directory of mock assets. | AbstractSolveEvent |
getPackages() | Get the installed Composer packages. | AbstractSolveEvent |
getRunResult() | Get the process result of asset manager execution. | PostSolveEvent |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $assetDir, Composer\Package\PackageInterface[] $packages, int $runResult)Creates the post-solve event.
Parameters
| Parameter | Type | Description |
|---|---|---|
$assetDir | string | The directory of mock assets. |
$packages | Composer\ | All installed Composer packages. |
$runResult | int | The process result of asset manager execution. |
getRunResult()
Section titled “getRunResult() ”public function getRunResult(): intGet the process result of asset manager execution.
Returns
int