mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-10 10:25:36 +08:00
Allow vendor mode loading default registry file
This commit is contained in:
@@ -60,5 +60,9 @@ if (filter_var(getenv('SPC_ENABLE_LOG_FILE'), FILTER_VALIDATE_BOOLEAN)) {
|
|||||||
|
|
||||||
// load core registry
|
// load core registry
|
||||||
Registry::loadRegistry(ROOT_DIR . '/spc.registry.yml');
|
Registry::loadRegistry(ROOT_DIR . '/spc.registry.yml');
|
||||||
|
// in vendor mode, auto-load the local working directory registry if it exists
|
||||||
|
if (spc_mode(SPC_MODE_VENDOR) && file_exists(WORKING_DIR . '/spc.registry.yml')) {
|
||||||
|
Registry::loadRegistry(WORKING_DIR . '/spc.registry.yml');
|
||||||
|
}
|
||||||
// load registries from environment variable SPC_REGISTRIES
|
// load registries from environment variable SPC_REGISTRIES
|
||||||
Registry::loadFromEnvOrOption();
|
Registry::loadFromEnvOrOption();
|
||||||
|
|||||||
Reference in New Issue
Block a user