-
Notifications
You must be signed in to change notification settings - Fork 61
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
Rename USER scope to LOCAL #23
Comments
I agree with you about renaming, but |
Hm, you might be right. I thought of Let's see what the different scope really does:
I suggest the follwing change: Or if you rather prefer: |
I think we should rename |
Okey. Hm, But you do also have a global and local (function) scope of variables. I feel that the names All (1), Global (2), Private (3) are a bit strange. Since 2 is the opposite to 3 they should be named with words that are generally know as opposites... Reading futher.. Wikipedia about scopes refers to:
They don't really mention I can't really make upp my mind. I know that |
Referring to the |
Sure, it makes sense. Let's have I suggest to rename
I have declared foo to
Since A is correct it seams weird that foo is in all scopes since it clearly is not in |
I think within the scope there should also be a separation on |
👍 Interesting idea! |
Well, I'm implementing this bundle as a replacement of the CraueConfigBundle because it seems to have more advanced options. My use-case for switching to this bundle is the user scope, I'd like to introduce a setting (internal counter) for a user that keeps track of the number of times it opened a "tour". Great about the sections in that bundle is that it allows me as an admin/developer to group settings. In the near future this will allow me to visually make tabs of all sections in my backend config for the "global" parameters. By introducing the sections, this allows me to get rid of the "prefixes" in the setting names. You could even think of configuring validation based on these sections. Another question @Nyholm , does the bundle allow me to edit all global settings without having to define all my current settings in a config file? |
So the section is nothing but a label you attach that allows you group settings? That is a feature I also would like to see. I'm sure @dmishh are happy to see a PR. =)
I'm not too sure what you mean. If I assume that the "current settings" are settings defined in CraueConfigBundle, then no. They store their settings differently. Aslo we need the config of "valid" settings. |
Okay, then I'd propose a way to lower the bar for developers to use this bundle. I do not want to define all settings in a yml file, they simply are a way to toggle certain features within my application and I'm the only one that will change them 😉 I can think of letting them fall under a certain "admin" section, and if only that section has a configuration, that's fine. Ofcourse the settings themselves could override the section configuration. 👍 |
@rvanlaak certain is key here. You don't have unlimited or random features, do you? In that case, you always can be precise with the features list. Of course, adding all of them to the config file is a bit burdening, but I'm considering it as a good practice. As for the Settings' sections, we have an issue #3 created already |
@Nyholm |
👍 I want use the "User Scope" to save locale (and have setting by locale) |
It make no sense anymore to have a
User
scope. We should consider renaming it toLocal
.The text was updated successfully, but these errors were encountered: