mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 01:15:37 +08:00
Add DumpStagesCommand to dump package stages and their locations
This commit is contained in:
@@ -240,6 +240,26 @@ class PackageLoader
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all registered before-stage callbacks (raw).
|
||||
*
|
||||
* @return array<string, array<string, list<array{0: callable, 1: ?string}>>>
|
||||
*/
|
||||
public static function getAllBeforeStages(): array
|
||||
{
|
||||
return self::$before_stages;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all registered after-stage callbacks (raw).
|
||||
*
|
||||
* @return array<string, array<string, list<array{0: callable, 1: ?string}>>>
|
||||
*/
|
||||
public static function getAllAfterStages(): array
|
||||
{
|
||||
return self::$after_stages;
|
||||
}
|
||||
|
||||
public static function getBeforeStageCallbacks(string $package_name, string $stage): iterable
|
||||
{
|
||||
// match condition
|
||||
|
||||
Reference in New Issue
Block a user