This repository has been archived by the owner on Jan 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
Complete migration to enable v3 forwards compatibility #145
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ZF 3.0.0 Compatibility Conflicts: config/module.config.php src/Factory/HalViewHelperFactory.php test/ChildEntitiesIntegrationTest.php test/Extractor/LinkExtractorTest.php test/Factory/HalViewHelperFactoryTest.php
This patch updates the tests so that they now run without errors or warnings. There are still seven failures, however, which need addressing.
- Updated references to `trigger()` within the `Hal` plugin when they use short-circuiting. In those cases, they now call `triggerEventUntil()` and pass a new `Event` instance as the second argument, using the name, plugin instance, and parameters that were previously passed to `trigger()`.
- Allows us to validate v2 and v3 components via CI. - Fixed CS issues as reported by phpcs.
- Marks as a ZF module, and updates the README to reflect this. - Also updates README to use short array notation.
`composer.lock` is against v3 components, so ran a `composer update --prefer-lowest` in order to test against v2 before issuing a pull request. This uncovered the following: - `createMock()` does not exist in PHPUnit 4. - Several assertions were being done against `Zend\Router\RouteMatch`; these were updated to vary the class based on zend-mvc version detected.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This patch builds on and supercedes #142. In particular:
Module
class under thesrc/
directory. Additionally, theModule
class no longer defines agetAutoloaderConfig()
, as it's redundant when managed via Composer.trigger()
calls that were using short-circuiting to use the forwards-compatibletriggerEventUntil()
with a concreteEvent
instance.PhlyRestfully
API documentation.composer.json
to known stable versions of all dependencies: