docs: add "What are Configuration Classes?"#8563
Conversation
datamweb
left a comment
There was a problem hiding this comment.
After millions of days. 🌞
| within the class files, or stored in a database using the :ref:`Settings <settings>` | ||
| library. |
There was a problem hiding this comment.
This explanation is misleading because the Setting library does not affect the instantiation of Config objects.
I will reconsider.
There was a problem hiding this comment.
Settings can replace config() in application code, but not config() in the framework code.
So I removed the description.
It is perfectly fine to read and write the values of custom Config classes added (or added properties to existing config classes) by a dev with setting().
But even if we use setting() within an app to allow Cookie config to be stored in the database, it does not affect the code that retrieves the values as config(CookieConfig::class) in the framework code.
|
If there are no objections, I will merge this within a couple of days. |
Description
Closes #7388
Checklist: