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

Conversation

weierophinney
Copy link
Member

@weierophinney weierophinney commented Mar 6, 2018

This patch updates the skeleton to use zend-expressive-router 3.0.0rc4, as well as the compatible versions of each of the existing adapters:

  • One change necessary is for the pipeline to change the order of the various zend-expressive-router middleare; MethodNotAllowedMiddleware MUST follow the Implicit*Middleware to ensure it does not respond for OPTIONS and HEAD requests.

  • This fixes an issue reported about the ImplicitOptionsMiddleware and MethodNotAllowedMiddleware not correctly reporting allowed HTTP methods.

It also updates the skeleton to zend-expressive 3.0.0rc3. Due to changes in that version, we must now also explicitly add zend-diactoros to the skeleton.

Copy link
Member

@michalbundyra michalbundyra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@@ -46,12 +46,14 @@
$app->pipe(PathBasedRoutingMiddleware::class);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can explain here that at this point the RouteResult::class is injected. It took me 20 minutes yesterday to figure out why a middleware wasn't working :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

This patch updates the skeleton to use zend-expressive-router 3.0.0rc4,
as well as the compatible versions of each of the existing adapters.

One change necessary is for the pipeline to change the order of the
various zend-expressive-router middleare;
`MethodNotAllowedMiddleware` MUST follow the `Implicit*Middleware` to
ensure it does not respond for OPTIONS and HEAD requests.
@weierophinney weierophinney force-pushed the feature/zend-expressive-router-rc2 branch from 4e01200 to b3a7a6a Compare March 7, 2018 17:21
@weierophinney weierophinney changed the title Use zend-expressive-router 3.0.0rc2 Use zend-expressive-router 3.0.0rc4 Mar 7, 2018
This change also requires us to add zend-diactoros in the skeleton
explicitly.
@weierophinney weierophinney changed the title Use zend-expressive-router 3.0.0rc4 Update dependencies Mar 7, 2018
@weierophinney weierophinney merged commit 842bfcd into zendframework:release-3.0.0 Mar 7, 2018
@weierophinney weierophinney deleted the feature/zend-expressive-router-rc2 branch March 7, 2018 18:04
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.

3 participants