dwo/flagging_bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dwo/flagging_bundle

最新稳定版本:v0.2.9

Composer 安装命令:

composer require dwo/flagging_bundle

包简介

:TODO:

README 文档

README

Build Status Coverage Status

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

  1. composer install
composer require doctrine/doctrine-cache-bundle
  1. Add Bundle to Kernel
// app/AppKernel.php
public function registerBundles()
{
    // ...
    $bundles[] = new \Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle();

    return $bundles;
}
  1. include config
imports:
    - { resource: @DwoFlaggingBundle/Resources/config/dwo_flagging.yml }
  1. 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

GitHub 信息

  • Stars: 1
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-18