Description
Hi 👋
we are currently migrating to Flex and have encountered a small DX issue. I currently don't have a nice proposal, but just wanted to point out that there might be an area to improve.
If you are not using env variables, the EnvConfiguration
command currently just bails out:
flex/src/Configurator/EnvConfigurator.php
Lines 35 to 38 in 9f2d70e
In this case though, the information about which configuration parameters (in form of env variables or env(VAR): value
in your parameters.yaml
) the bundle expects is just lost:
I am not sure about how to improve the situation except printing a message like:
Hey, this bundle needs some env variables. This is what we would have added to your
.env.dist
file, but since you don't have one, you have to add these parameters yourself: [... printmanifest.json["env"]
...]
So currently you have to hunt down the recipe manually in Github (potentially search the correct version), look at the manifest.json
and proceed from there. This might be improved by just printing the already available info to the CLI in the installation process?
What do you think?