clevis / config-version-extension
适用于示例/local Nette 配置文件的版本
v1.1.1-beta
2015-02-05 12:20 UTC
Requires
- php: >=5.4
- nette/di: ~2.2.0 || ~2.3.0-beta
- nette/neon: ~2.2.0 || ~2.3.0-RC
- tracy/tracy: ~2.2.0 || ~2.3.0-RC
This package is not auto-updated.
Last update: 2024-09-24 02:52:34 UTC
README
安装
composer require clevis/config-version-extension:~1.0
config.neon
:
extensions: version: Clevis\Version\DI\VersionExtension
config.local.sample.neon
和 config.local.neon
version: [1]
使用方法
每当您以向后不兼容的方式更改 config.local.sample.neon
时,请更新示例配置中的版本键。通过 onCompile
钩子检查您的本地配置是否已更新。如果没有,它将使用自定义 Tracy 面板显示以下异常:
如果您不使用默认路径,请在容器构建之前设置它们。
use Clevis\Version\DI\VersionExtension; VersionExtension::$samplePath = '%appDir%/config/config.local.example.neon';