-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] Configuration with user input #344
Comments
I've thought about being more interactive before but I've decided early on that it would be out of the scope for Flex. Flex is all about auto-configurability, which forbids asking questions. I've seen so many projects (private ones) where installing the code means answering tens of questions you've no idea about which answers would be the best. So, even if I like the idea, that's not something I'm wiling to consider for Flex. We still have some progress to do on being smarter, but interactivity is not on my list. Thanks for proposing. |
@covex-nn I solved this with some recipes to create a console command and in the post-install.txt I tell the user to run it. Not ideal but it does the trick. |
@slootjes +1, if Flex will not be interactive, a console command (or maker for |
Sometimes it is not posible to create a recipe without some knowledge about application. For example, Flex does not know how application stores and operates with its data. Only the developer has this knowledge! So, Flex could ask developer about application and store all answers in
composer.json
somewhere underextra
key.With this knowledge, Flex could replace some placeholders in configuration files or copy different files for different user input.
Examples:
db_driver
forfriendsofsymfony/user-bundle
. A recipe could be created with replacing some placeholder with user choice (orm
,mongodb
,couchdb
orcustom
);sonata-project/media-bundle
(orm
,phpcr
ormongodb
) and copy some classes only intoEntity/
,Document/
orPHPCR/
directory.What do you think?
The text was updated successfully, but these errors were encountered: