gusdeboer / symfony-7-boilerplate

Ready to go Symfony boilerplate. (Social login, Symfony UX)
0 stars 1 forks source link

Project setting enums #15

Closed gusdeboer closed 1 month ago

gusdeboer commented 1 month ago

The basic project settings should have the keys specified in an Enum.

enum Settings: string {
    SettingOne: 'setting_one';
    SettingTwo: 'setting_two';
}

After that the SettingsService should only accept keys provided by the Settings enum.

Don't forget to update the docs