craue / CraueConfigBundle

Database-stored settings made available via a service for your Symfony project.
MIT License
173 stars 35 forks source link

Get all configs of given section (feature request) #15

Closed danielrhodeswarp closed 9 years ago

danielrhodeswarp commented 9 years ago

Not an issue, just a feature request. How about:

$this->get('craue_config')->getSection('name-of-a-section')

which returns an array of all settings in that section?

craue commented 9 years ago

The idea itself is good, but I don't like the method's name getSection because its return value is not a section. Maybe getBySection?

danielrhodeswarp commented 9 years ago

Linguistic programming - I like it! getBySection() would be great. Honestly I would like to add this myself but I'm a bit of a Github workflow virgin. Not to mention rushed off my feet with actual paying work! :-/