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

Complete #40: allow installation with packages defining multiple autoloader paths #44

Merged
merged 3 commits into from
Nov 6, 2017

Conversation

weierophinney
Copy link
Member

This patch completes #40, which fixes an issue when any given autoloader namespace is associated with multiple paths (versus a single path).

It does the following on top of #40:

  • Refactors the loadModuleClassesDependencies() method to extract additional methods, one for each iteration. This simplifies each individual method dramatically.
  • Adds tests to verify that the installer does indeed recognize and loop through all paths associated with a given namespace, without error.

Martin Meredith and others added 3 commits November 6, 2017 12:38
Instead of a switch nested under three levels of foreach loop, this
extracts each loop operation to its own method. It accomplishes
aggregation of dependencies by using `ArrayObject` internally to
aggregate them.
This patch adds tests to cover zendframework#40. Specifically, it ensures that the
installer will loop through all paths for each autoloader namespace
entry, whether it's a single path or multiple paths, in order to
determine if it has any module dependencies.
@weierophinney weierophinney merged commit dd9f778 into zendframework:develop Nov 6, 2017
weierophinney added a commit that referenced this pull request Nov 6, 2017
Also removes empty 1.0.1 stub as it will not be used.
weierophinney added a commit that referenced this pull request Nov 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant