Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Default to first discovered option #49

Merged

Conversation

weierophinney
Copy link
Member

The primary use case for this plugin is to automate injection of discovered configuration providers and/or modules. By defaulting to "do not inject", we are essentially undoing such automation.

This patch modifies the ComponentInstaller class to default to the first provider/module discovered. The implication is that component/module authors should put the most desired location first if defining multiple injection points.

Since this is a rather significant change in behavior, I'm targeting a v2 release.

The primary use case for this plugin is to automate injection of
discovered configuration providers and/or modules. By defaulting to "do
not inject", we are essentially undoing such automation.

This patch modifies the `ComponentInstaller` class to default to the
first provider/module discovered. The implication is that
component/module authors should put the most desired location first if
defining multiple injection points.
Per @akrabat, the default value for "remember this option" should also
be "y".
@weierophinney weierophinney added this to the 2.0.0 milestone Feb 6, 2018
@weierophinney weierophinney merged commit fc1952a into zendframework:develop Feb 6, 2018
weierophinney added a commit that referenced this pull request Feb 6, 2018
- Renames 1.2.0 entry to 2.0.0
- Adds entry to "Changed" section for #49
weierophinney added a commit that referenced this pull request Feb 6, 2018
@weierophinney weierophinney deleted the feature/install-by-default branch February 6, 2018 17:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant