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

is there a way to list the features? #79

Open
enriquesomolinos opened this issue Jun 10, 2020 · 3 comments
Open

is there a way to list the features? #79

enriquesomolinos opened this issue Jun 10, 2020 · 3 comments
Labels

Comments

@enriquesomolinos
Copy link

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

@migo315
Copy link
Contributor

migo315 commented Oct 26, 2020

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

@jasonbstanding
Copy link

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
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants