mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 17:35:36 +08:00
Allow all artifact configs
This commit is contained in:
@@ -18,7 +18,7 @@ class ArtifactConfig
|
|||||||
throw new WrongUsageException("Directory {$dir} does not exist, cannot load artifact config.");
|
throw new WrongUsageException("Directory {$dir} does not exist, cannot load artifact config.");
|
||||||
}
|
}
|
||||||
$loaded = [];
|
$loaded = [];
|
||||||
$files = glob("{$dir}/artifact.*.json");
|
$files = glob("{$dir}/*");
|
||||||
if (is_array($files)) {
|
if (is_array($files)) {
|
||||||
foreach ($files as $file) {
|
foreach ($files as $file) {
|
||||||
self::loadFromFile($file, $registry_name);
|
self::loadFromFile($file, $registry_name);
|
||||||
|
|||||||
Reference in New Issue
Block a user