kalamu/dynamique-config-bundle
Composer 安装命令:
composer require kalamu/dynamique-config-bundle
包简介
A configuration container independant of Symfony.
README 文档
README
This bundle provide a way to define some configuration parameters that are not dependants of the symfony container. As they are independants, they can be changed without interfering with Symfony configuration and without clearing the cache.
This bundle use a parameter container that is persisted in the file
app/config/dynamique_config.yml
Usage
$config = $container->get('kalamu_dynamique_config'); echo "The background color is : ".$config->get('background_color', 'red'); // get the value of 'background_color' or 'red' if it's not defined $config->set('background_color', 'blue'); // change the configuration $config->has('background_color'); // return TRUE $config->remove('background_color'); // remove this parameter
统计信息
- 总下载量: 25
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-18