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

Changed ClientConfiguration instance used in ConfigOptionsList #745

Closed
wants to merge 1 commit into from
Closed

Changed ClientConfiguration instance used in ConfigOptionsList #745

wants to merge 1 commit into from

Conversation

careys7
Copy link

@careys7 careys7 commented Feb 12, 2018

Changed ClientConfiguration instance used in ConfigOptionsList to ensure that ScopeConfigInteface isn't accessed prior to Magento initialization.

The custom options array previously passed to Client\ClientConfiguration was to allow for the setup:install parameters supplied via CLI to be passed to the client in order to validate the connection settings before proceeding with Magento installation.

This has been removed, as it doesn't look like there is currently any use cases that require it. It has been extracted into a separate ClientConfigurationInterface implementation so that ConfigOptionsList can construct an instance without touching ScopeConfigInterface, as this caused the following:

  • Notice: Undefined index: websites in module-config/App/Config/Type/System.php on line 248
  • Empty config to be saved to cache prior to Magento install (unknown what this causes currently)

Fixes #738

… ensure that ScopeConfigInteface isn't accessed prior to Magento initialization

The custom options array previously passed to Client\ClientConfiguration was to allow for the setup:install parameters supplied via CLI to be passed to the client in order to validate the connection settings before proceeding with Magento installation.

This has been removed, as it doesn't look like there is currently any use cases that require it. It has been extracted into a separate ClientConfigurationInterface implementation so that ConfigOptionsList can construct an instance without touching ScopeConfigInterface, as this caused the following:

- Notice: Undefined index: websites in module-config/App/Config/Type/System.php on line 248
- Empty config to be saved to cache prior to Magento install (unknown what this causes currently)

Fixes #738
@afoucret
Copy link
Contributor

Closed in favor of #769

@afoucret afoucret closed this Feb 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants