dwo/flagging_bundle
最新稳定版本:v0.2.9
Composer 安装命令:
composer require dwo/flagging_bundle
包简介
:TODO:
关键字:
README 文档
README
FeatureFlaggingBundle
:TODO:
Own Feature Manager
replace the feature manager
dwo_flagging: manager: feature: my_services.flagging_manager
use Dwo\Flagging\Model\FeatureManagerInterface; class MyFlaggingManager implements FeatureManagerInterface { ... }
Dynamic Features
Best case for dynamic features is a database- & cache layer. A Case Study with DoctrineCacheBundle. This case use a php file cache and a dbal connection.
Use DoctrineCacheBundle
- composer install
composer require doctrine/doctrine-cache-bundle
- Add Bundle to Kernel
// app/AppKernel.php public function registerBundles() { // ... $bundles[] = new \Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle(); return $bundles; }
- include config
imports: - { resource: @DwoFlaggingBundle/Resources/config/dwo_flagging.yml }
- replace feature manager
manager: feature: dwo_flagging.manager.feature.cache
Cache Clear
To clear the cache, use the DoctrineCacheBundle FlushCommand
php app/console doctrine:cache:flush flagging
统计信息
- 总下载量: 6.3k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-05-18