clevis / config-version-extension
Versions for sample/local Nette configuration files
Installs: 475
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 10
Forks: 0
Open Issues: 1
pkg:composer/clevis/config-version-extension
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: 2025-10-21 08:19:32 UTC
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';
