-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Good practice of saving config values? #597
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
Comments
Yes, right. I saw it. Just thought it's just too few across complete codebase. So |
If you need just save config data in storage you may use Magento\Framework\App\Config\Storage\WriterInterface. |
@tim-bezhashvyly, thank you for asking! I guess @kandy has provided you an answer in the thread. Please close this issue when you are satisfied with the answers and the conversation is over. Thank you! |
@kandy sorry but what do you mean by "save config data in storage" ? |
I meant write in DB(as default behavior). It's allow you saving configuration that not available in UI for example. |
Makes sense. Thanks. |
I don't a
saveConfig
method used anywhere in M2 core even though the method still exists. Does it mean there's another recommended way to save config data?The text was updated successfully, but these errors were encountered: