dwo/flagging_bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

:TODO:

v0.2.9 2016-11-10 18:35 UTC

This package is not auto-updated.

Last update: 2023-04-01 09:55:15 UTC


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