Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

[Refactor] Cookie Activator #57

Open
migo315 opened this issue May 6, 2019 · 0 comments
Open

[Refactor] Cookie Activator #57

migo315 opened this issue May 6, 2019 · 0 comments
Milestone

Comments

@migo315
Copy link
Contributor

migo315 commented May 6, 2019

The new Flagception Bundle 4.0 will work without the shared "features" tree. Each activator has his own feature tree (if needed) or work without them.

The new "CookieActivator" will replace the old one. It designed to work without a feature list. So all features in your cookie will be enabled:

# config.yml

flagception:   
    activators:    
        cookie:
            enable: true
        database:
            // ...
        contentful:
            // ...
        memory:
            // ...

But you can optionally set a blacklist or whitelist:

# config.yml

flagception:   
    activators:    
        cookie:
            enable: true
            mode: 'blacklist' # (or 'whitelist')
            features:
                 - 'feature_foo'
                 - 'feature_newletter_(.*)' # Can be a regex too 
        database:
            // ...
        contentful:
            // ...
        memory:
            // ...
@migo315 migo315 added this to the 4.0 milestone May 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant