For some actions I would like to store some messages including placeholders in my database.
These messages are actions. What's the best way to retrieve them now and set the placeholder to some value?
For example a message may look like:
These values rarely change so i have my cache warmed up by them. Anyway I was concerned with way more safe, and thought may be missing something significant.
I think "safe" is the wrong term, but according to localisation I would never go with database values (personal preference).
He could write an own implementation of localisation using the TranslatorInterface, which takes all strings from the database, but I think the file method is easier. And I don't see an important reason to store strings like these in a database.