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

[Refactor] Environment ActivatorΒ #58

@migo315

Description

@migo315

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 "EnvironmentActivator" will replace the old one. It designed to work without a feature list. So all features which are defined as environment variables will be used. You do not have to set it in your config.yml:

# config.yml

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

But you can optionally set a blacklist or whitelist:

# config.yml

flagception:   
    activators:    
        environment:
            enable: true
            mode: 'blacklist' # (or 'whitelist')
            features:
                 - 'feature_foo'
                 - 'feature_newletter_(.*)' # Can be a regex too 
        database:
            // ...
        contentful:
            // ...
        memory:
            // ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions