diff --git a/README-zh.md b/README-zh.md index e12149b4..3abe0a69 100755 --- a/README-zh.md +++ b/README-zh.md @@ -5,7 +5,7 @@ [![Releases](https://img.shields.io/packagist/v/crazywhalecc/static-php-cli?include_prereleases&label=Release&style=flat-square)](https://github.com/crazywhalecc/static-php-cli/releases) [![CI](https://img.shields.io/github/actions/workflow/status/crazywhalecc/static-php-cli/tests.yml?branch=main&label=Build%20Test&style=flat-square)](https://github.com/crazywhalecc/static-php-cli/actions/workflows/tests.yml) [![License](https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square)](https://github.com/crazywhalecc/static-php-cli/blob/main/LICENSE) -[![Discord](https://img.shields.io/discord/nrSRbpMJ?label=Discord&logo=discord&style=flat-square)](https://discord.gg/nrSRbpMJ) +[![Discord](https://img.shields.io/discord/nrSRbpMJ?label=Discord&logo=discord&style=flat-square)](https://discord.gg/xf6Rd4pEAk) **StaticPHP** 是一个强大的工具,用于构建可移植的可执行文件,包括 PHP、扩展等。 diff --git a/README.md b/README.md index 85e033f3..e0df9998 100755 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![Releases](https://img.shields.io/packagist/v/crazywhalecc/static-php-cli?include_prereleases&label=Release&style=flat-square)](https://github.com/crazywhalecc/static-php-cli/releases) [![CI](https://img.shields.io/github/actions/workflow/status/crazywhalecc/static-php-cli/tests.yml?branch=main&label=Build%20Test&style=flat-square)](https://github.com/crazywhalecc/static-php-cli/actions/workflows/tests.yml) [![License](https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square)](https://github.com/crazywhalecc/static-php-cli/blob/main/LICENSE) -[![Discord](https://img.shields.io/discord/nrSRbpMJ?label=Discord&logo=discord&style=flat-square)](https://discord.gg/nrSRbpMJ) +[![Discord](https://img.shields.io/discord/nrSRbpMJ?label=Discord&logo=discord&style=flat-square)](https://discord.gg/xf6Rd4pEAk) **StaticPHP** is a powerful tool designed for building portable executables including PHP, extensions, and more. diff --git a/docs/en/guide/index.md b/docs/en/guide/index.md index 25be9fc7..30af5667 100644 --- a/docs/en/guide/index.md +++ b/docs/en/guide/index.md @@ -47,7 +47,7 @@ Build your CLI with [symfony/console](https://symfony.com/doc/current/components ## Community -Join our [Discord server](https://discord.gg/nrSRbpMJ) to ask questions, share your builds, and connect with other StaticPHP users. +Join our [Discord server](https://discord.gg/xf6Rd4pEAk) to ask questions, share your builds, and connect with other StaticPHP users. ## Next steps diff --git a/docs/zh/guide/index.md b/docs/zh/guide/index.md index b6a25faa..364e130e 100644 --- a/docs/zh/guide/index.md +++ b/docs/zh/guide/index.md @@ -55,7 +55,7 @@ StaticPHP 支持将 FrankenPHP 连同所需扩展一起静态编译, ## 社区 -加入我们的 [Discord 服务器](https://discord.gg/nrSRbpMJ),提问、分享构建成果,与其他 StaticPHP 用户交流。 +加入我们的 [Discord 服务器](https://discord.gg/xf6Rd4pEAk),提问、分享构建成果,与其他 StaticPHP 用户交流。 ## 接下来 diff --git a/src/bootstrap.php b/src/bootstrap.php index c300e1f6..f7875e0c 100644 --- a/src/bootstrap.php +++ b/src/bootstrap.php @@ -77,5 +77,9 @@ if (filter_var(getenv('SPC_ENABLE_LOG_FILE'), FILTER_VALIDATE_BOOLEAN)) { // load core registry 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 Registry::loadFromEnvOrOption();