Skip to content
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

config:get show default config.xml value #1025

Closed
rafaelstz opened this issue Aug 9, 2022 · 2 comments
Closed

config:get show default config.xml value #1025

rafaelstz opened this issue Aug 9, 2022 · 2 comments

Comments

@rafaelstz
Copy link
Contributor

Current Implementation

The current config:get doesn't show the default value from the config.xml if it's not in the database.

Suggested Enhancement

Check the default value in case there's no value found via DB.
https://github.com/netz98/n98-magerun2/blob/develop/src/N98/Magento/Command/Config/Store/GetCommand.php#L128

This alias function does this:

function m2-config-get () {
  bin/mageru2 dev:con "\$di->create(\Magento\Framework\App\Config\ScopeConfigInterface::class)->getValue('$1');exit" | grep '=>'
}

Expected Benefits

image

@convenient
Copy link
Contributor

Possibly a subset of #712

It would be neat if we could have config:store:get read default.xml, config.php, and env.php appropriately.

@cmuench
Copy link
Member

cmuench commented Oct 13, 2022

@rafaelstz Duplicate of #712

@cmuench cmuench closed this as completed Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants