dwo / flagging_bundle
:TODO:
Installs: 6 289
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.4
- dwo/flagging: ~0.2@dev
- dwo/flagging_voters: ~1.0@dev
- dwo/tagged_services: ~1.0
- symfony/framework-bundle: >=2.4|>=3.0
Requires (Dev)
- phpunit/phpunit: ~4.6
- symfony/expression-language: ~2.4
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