craue / CraueConfigBundle

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

$default parameter in case setting does not exists #21

Closed rvanlaak closed 9 years ago

rvanlaak commented 9 years ago

... and minor code style fixes.

craue commented 9 years ago

Why would you access a nonexistent setting? I only see two cases here: There's either a typo in the name or a database migration inserting the setting wasn't executed yet. Throwing an exception is fine in both cases.