Understand the feature flag evaluation order
masterWhen multiple parameters are provided for a feature, Flagception follows a specific evaluation chain to determine if a feature is active:
default: Thedefaultvalue is checked first.env: If thedefaultvalue isfalse, the value from the environment variable specified inenvis checked.constraint: If bothdefaultandenvreturnfalse, theconstraintlogic is evaluated.
If any step in this chain results in a true status, the feature is considered active.
# config.yml
flagception:
features:
feature_123:
default: false
env: FEATURE_NAME_FROM_ENV
constraint: 'user_role == ROLE_ADMIN'