flagception-bundle icon indicating copy to clipboard operation
flagception-bundle copied to clipboard

is there a way to list the features?

Open enriquesomolinos opened this issue 4 years ago • 3 comments

Hi, We are use to manage our product features with your bundle. Normally we can check if a feature is available on php, twig and Javascript time.

Our main problem is that we want to know the list of the features in twig time. We can create an extension but your bundle encapsulate very well the features array.

Thanks

enriquesomolinos avatar Jun 10 '20 15:06 enriquesomolinos

I don't really understand your requirement. The Symfony Profiler should list all features?

migo315 avatar Oct 26 '20 14:10 migo315

I believe we have a similar requirement - we don't have the profiler active in all of our environments, but we do have a requirement to see what features flags exist in an environment, and what values they're set to. (our env vars are controlled via k8s, but due to the complexity of the setup we've concluded that what we need is a way to interrogate our app to find out what IT thinks it has)

So, is there a way to access the contents of flagception.features defined in config/packages/flagception.yaml without having to call each feature flag by name?

jasonbstanding avatar Sep 30 '22 10:09 jasonbstanding

So, is there a way to access the contents of flagception.features defined in config/packages/flagception.yaml without having to call each feature flag by name?

FWIW, what we ended up doing in the meantime was opening the flagception.yaml file with Yaml::parseFile and iterated over the features array.

jasonbstanding avatar Nov 03 '22 10:11 jasonbstanding