clevis/config-version-extension
Composer 安装命令:
composer require clevis/config-version-extension
包简介
Versions for sample/local Nette configuration files
README 文档
README
Installation
composer require clevis/config-version-extension:~1.0
config.neon:
extensions: version: Clevis\Version\DI\VersionExtension
config.local.sample.neon and config.local.neon:
version: [1]
Usage
Whenever you change config.local.sample.neon in a back compatibility breaking way, update version
key in sample config. Hook onCompile will check if your local config is up to date. If not, it presents
you the following exception with custom Tracy panel:
If you aren't using default paths, set them before Container builds
use Clevis\Version\DI\VersionExtension; VersionExtension::$samplePath = '%appDir%/config/config.local.example.neon';
统计信息
- 总下载量: 475
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-08-22
