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

Commit 5520ab8

Browse files
committed
Updates CHANGELOG to update references to PathBasedRoutingMiddleware
All references to PathBasedRoutingMiddleware were changed to either `RouteCollector` or `RouteMiddleware`, depending on the context.
1 parent e2da306 commit 5520ab8

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

CHANGELOG.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ All notable changes to this project will be documented in this file, in reverse
6969
`Zend\HttpHandlerRunner\RequestHandlerRunner` instance, using the services
7070
`Zend\Expressive\Application`, `Zend\HttpHandlerRunner\Emitter\EmitterInterface`,
7171
`Zend\Expressive\ServerRequestFactory`, and `Zend\Expressive\ServerRequestErrorResponseGenerator`.
72-
- `RouteMiddlewareFactory`: creates and returns a `Zend\Expressive\Router\PathBasedRoutingMiddleware` instance.
7372
- `ServerRequestFactoryFactory`: creates and returns a `callable` factory for
7473
generating a PSR-7 `ServerRequestInterface` instance; this returned factory is a
7574
dependency for the `Zend\HttpHandlerRunner\RequestHandlerRunner` service.
@@ -146,7 +145,7 @@ All notable changes to this project will be documented in this file, in reverse
146145

147146
- `Zend\Expressive\MiddlewareFactory`
148147
- `Zend\Stratigility\MiddlewarePipe`; this is the pipeline representing the application.
149-
- `Zend\Expressive\Router\PathBasedRoutingMiddleware`
148+
- `Zend\Expressive\Router\RouteCollector`
150149
- `Zend\HttpHandlerRunner\RequestHandlerRunner`
151150

152151
It removes all "getter" methods (as detailed in the "Removed" section of this
@@ -169,8 +168,8 @@ All notable changes to this project will be documented in this file, in reverse
169168

170169
- `route(string $path, $middleware, array $methods = null, string $name) : Route`
171170
passes its `$middleware` argument to the `MiddlewareFactory::prepare()`
172-
method, and then all arguments to the composed `PathBasedRoutingMiddleware`
173-
instance's `route()` method.
171+
method, and then all arguments to the composed `RouteCollector` instance's
172+
`route()` method.
174173

175174
As a result of switching to use the `MiddlewareFactory` to prepare
176175
middleware, you may now route to `RequestHandlerInterface` instances as
@@ -179,8 +178,7 @@ All notable changes to this project will be documented in this file, in reverse
179178
- Each of `get`, `post`, `patch`, `put`, `delete`, and `any` now proxy to
180179
`route()` after marshaling the correct `$methods`.
181180

182-
- `getRoutes() : Route[]` proxies to the composed `PathBasedRoutingMiddleware`
183-
instance.
181+
- `getRoutes() : Route[]` proxies to the composed `RouteCollector` instance.
184182

185183
- `handle(ServerRequestInterface $request) : ResponseInterface` proxies to the
186184
composed `MiddlewarePipe` instance's `handle()` method.
@@ -200,7 +198,7 @@ All notable changes to this project will be documented in this file, in reverse
200198
- `Zend\Stratigility\ApplicationPipeline`, which should resolve to a
201199
`MiddlewarePipe` instance; use the
202200
`Zend\Expressive\Container\ApplicationPipelineFactory`.
203-
- `Zend\Expressive\Router\PathBasedRoutingMiddleware`
201+
- `Zend\Expressive\Router\RouteCollector`
204202
- `Zend\HttpHandlerRunner\RequestHandlerRunner`
205203

206204
- [#581](https://github.com/zendframework/zend-expressive/pull/581)
@@ -274,9 +272,7 @@ All notable changes to this project will be documented in this file, in reverse
274272

275273
- [#543](https://github.com/zendframework/zend-expressive/pull/543) removes the
276274
class `Zend\Expressive\Middleware\RouteMiddleware`. Use the
277-
`PathBasedRoutingMiddleware` or `RouteMiddleware` from zend-expressive-router
278-
instead; the factory `Zend\Expressive\Container\RouteMiddlewareFactory` will
279-
return a `PathBasedRoutingMiddleware` instance for you.
275+
`RouteMiddleware` from zend-expressive-router instead.
280276

281277
- [#543](https://github.com/zendframework/zend-expressive/pull/543) removes the
282278
class `Zend\Expressive\Middleware\DispatchMiddleware`. Use the
@@ -291,7 +287,7 @@ All notable changes to this project will be documented in this file, in reverse
291287
- [#543](https://github.com/zendframework/zend-expressive/pull/543) removes the
292288
following methods from `Zend\Expressive\Application`:
293289

294-
- `pipeRoutingMiddleware()`: use `pipe(\Zend\Expressive\Router\PathBasedRoutingMiddleware::class)` instead.
290+
- `pipeRoutingMiddleware()`: use `pipe(\Zend\Expressive\Router\RouteMiddleware::class)` instead.
295291
- `pipeDispatchMiddleware()`: use `pipe(\Zend\Expressive\Router\DispatchMiddleware::class)` instead.
296292
- `getContainer()`
297293
- `getDefaultDelegate()`: ensure you pipe middleware or a request handler

0 commit comments

Comments
 (0)