8000 Complete v3 support by weierophinney · Pull Request #73 · zfcampus/zf-content-negotiation · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Complete v3 support #73

Merged
merged 10 commits into from
Jul 7, 2016
Merged

Conversation

weierophinney
Copy link
Member

This patch completes the work begun in #71, with the following changes:

  • Ensures all factories will work with both v2 and v3 releases of zend-servicemanager.
  • Updates JsonModel to pull the composed user entity instance from a ZF\Hal\Entity via the new getEntity() accessor added in the 1.4 release.
  • Implements a lowest/locked/latest testing strategy.
  • Moves the Module class into the src/ directory, where it belongs.
  • Removes support for PHP 5.5 and adds support for PHP 7.0.
  • Bumps all dependency minimum versions to known forwards-compatible versions, and provides v3 as an alternative when possible.

Adam Grabek and others added 10 commits June 9, 2016 00:18
[WIP] ZF3 support

Conflicts:
	composer.json
- Use PHP 5.6 or 7.0
- Use zf-api-problem `^1.2.1`
- Use zf-hal `^1.4`
- Move `Module` class under `src/` tree and modernize it.
- Mark package as a module for zf-component-installer.
- Updated `JsonModel` to pull entity instance from `ZF\Hal\Entity` via
  `getEntity()` getter (instead of property access; change occurred in zf-hal
  1.4).
- Updated setup in `RenameUploadFilterFactoryTest` to pass servicemanager and
  array of config to filter manager constructor directly.
- In most cases, removed the `FactoryInterface` implementation, as that's the
  simplest route.
- In the case of the UploadFileValidator, the factory needs to accept options,
  which is different between v2 and v3; as such, it implements the legacy
  interface to allow usage in both versions.
- Updated `RenameUploadFilterFactory` to work with both v2 and v3.
- Fixed issue with return value in `UploadFileValidatorFactory`.
- Updated `ContentTypeFilterListenerTest`, `ContentTypeListenerTest`, and
  `AcceptListenerTest` to vary how route matches are created, based on zend-mvc
  version detected.
- Added CONDUCT
- Updated CONTRIBUTING to follow addition of scripts to `composer.json` and
  addition of CONDUCT.
- Changed LICENSE to markdown.
- Updated configuration to remove invokables.
- PHPUnit configuration as dist file.
- Instructions regarding zend-component-installer in README, and updates based
  on changes to module.
@weierophinney weierophinney added this to the 1.2.0 milestone Jul 7, 2016
@weierophinney weierophinney self-assigned this Jul 7, 2016
@weierophinney weierophinney merged commit 455092d into zfcampus:develop Jul 7, 2016
weierophinney added a commit that referenced this pull request Jul 7, 2016
weierophinney added a commit that referenced this pull request Jul 7, 2016
@weierophinney weierophinney deleted the feature/71 branch July 7, 2016 19:35
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
0