This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
Auto include Module classes only for components not for modules #23
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As noticed by @jguittard in zfcampus/zf-apigility-doctrine#267 (comment) Module classes which implements some interfaces can't be autoloaded. Component installer needs to include only Module classes for component (because dependencies are checked only for component - when package have to be added on top).
This fix (hack...) include only Module classes when package type is component.
It is temporary solution, still it is not gonna work when component implements some interface. So far I don't know any package which is exposed as component and Module class implements some interfaces.
/cc @weierophinney @jguittard