-
-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Cms] Namespaced options as array instead of dot-notation #761
Comments
(removed my post since i missunderstood question) XD |
not totally unrelated to DRY is total length of config files. splitting them based on plugin etc. https://github.com/k-next/plugins/issues/21#issuecomment-408519265 |
Related #604 |
FWIW, in the latest release of my xmlsitemap I implemented a single-level pseudo-namespace. The readme gives an example. The more interesting bit of code is below. With some recursion it could probably be extended to support multiple levels of namespace. |
This issue was moved by bastianallgeier to k-next/ideas#32. |
In the options in
config/config.php
, currently what we do is this:It works fine, but I'm very tempted to instead write something like this:
The big difference is that the last version is DRY. If the namespace or the plugin name is changed, I can just change it in one place.
Also plugins with the same author will be nicely grouped together when they use the same namespace.
The text was updated successfully, but these errors were encountered: