ink / version-tag-bundle
此包已被废弃且不再维护。未建议替代包。
Symfony2 插件,提供一种简单的方法将文件中的版本号包含到 twig 模板中
dev-master
2014-02-27 03:56 UTC
Requires
- php: >=5.3.0
- symfony/symfony: >=2.3
This package is not auto-updated.
Last update: 2020-01-20 07:19:45 UTC
README
此插件提供了一种快速方法将文件中读取的版本号包含到您的应用程序中。
安装
您可以通过 composer 安装 Haphazard。
composer.phar require ink/version-tag-bundle
配置
要使用此插件,您需要将其注册到应用内核中。
$bundles = array(
// ...
new Ink\VersionTagBundle\InkVersionTagBundle(),
);
您还需要指定一个文件,从中读取您应用程序的版本字符串。
在 app/config/config.yml 中
ink_version_tag:
file_location: %kernel.root_dir%/../VERSION