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

ZF3 component compatibility #43

Closed
wants to merge 11 commits into from

Conversation

weierophinney
Copy link
Member

@weierophinney weierophinney commented Jul 13, 2016

This patch updates the module to be forwards compatible with v3 releases of Zend Framework components. Specifically, it does the following:

  • Updates the minimum supported PHP version to 5.6.
  • Ensures the dependency list represents the actual module requirements, and sets the minimum supported version of each dependency to the latest stable release; if a v3 release is available, this is supported via || constraints.
  • Moves the Module class to the src/ tree, where it belongs, and:
    • removes the getAutoloaderConfig() implementation, as it was redundant.
    • extracts the ApiFactory factory to its own class, allowing removal of the getServiceConfig() implementation.
  • Updates the CI integration to test against lowest, locked, and latest dependencies.

@weierophinney weierophinney added this to the 1.2.0 milestone Jul 13, 2016
- Set minimum supported PHP version to 5.6
- Updated all component and module minimum supported versions to known stable
  versions; if v3 releases are available, supported via `||` constraints.
- Expose module to zend-component-installer
- Move `Module` class to `src/` tree, where it belongs, and:
  - Remove `getAutoloaderConfig()`
  - Remove direct interface implementations
  - Use `::class` notation
- Replaced `getMock()` usage with `getMockBuilder()->getMock()`
- Use `::class` notation where possible
- trying to isolate a testing issue
- picks up michelf/markdown
- Added zend-inputfilter as a requirement. When `--prefer-lowest` is used,
  zend-mvc installs it, which is why tests passed, but when latest dependencies
  are installed, its absence causes tests to fail.
- Ensured short array notation is used throughout.
- Use `::class` notation wherever possible.
- Extracted factory for `ApiFactory` into its own class, and removed
  `getServiceConfig()` implementation from `Module` class.
- Added missing LICENSE.md
- Added Code Manifesto, CONDUCT.md
- Updated CONTRIBUTING to refer to CONDUCT
- Updated CONTRIBUTING to refer to composer scripts
- Updated README to:
  - use short array notation
  - update the system config section to reflect recent changes
  - remove ZF2 verbiage
  - improve installation instructions
@weierophinney weierophinney changed the title [WIP] ZF3 component compatibility ZF3 component compatibility Jul 14, 2016
@weierophinney
Copy link
Member Author

Travis is evidently having a queueing problem. As such, I did the following locally:

  • Tested against PHP 5.6:
    • lock file
    • --prefer-lowest
    • update
  • Tested against PHP 7:
    • lock file
    • --prefer-lowest
    • update

In all cases, tests pass. As I've already been waiting 40 minutes for the build and have cancelled twice, I'm going to merge so I can move on to the swagger and apiblueprint updates.

@weierophinney weierophinney deleted the feature/zf3compat branch July 14, 2016 15:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant