CraueConfigBundle
CraueConfigBundle copied to clipboard
Console command to create settings
I understand the reasoning behind not making it 'easy' to create settings, since you shouldn't need to unless you're developing and have access to the code/db, but I think a console command to create settings would be a pretty good middle ground between a full ui (pointless) and busting out a SQL/database editor (or fiddling around with writing a good query in a migration).
The console command could also generate the doctrine migration to insert the new setting for you when you deploy.
Thoughts?
Writing an SQL statement to insert one or several rows (probably with initial values) shouldn't be such a difficult task for a developer. :smirk:
@craue, I think idea to generate migration for settings insert is quite good: it will be executed by deployment scripts automatically.
@enl: Feel free to contribute. I won't have time to add such feature.