Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/book/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ is callable. When those conditions are met, it uses the [PSR-7 bridge](https://g
to convert the zend-http request and response objects into PSR-7 instances, and
then invokes the middleware.

Starting with version 3.1.0, the `zendframework/zend-stratigility:^2.0` package is needed if you want to dispatch
middleware. Be sure to add it to your project:

```bash
$ composer require zendframework/zend-stratigility:^2.0
```

Version 3 of `zend-stratigility` is currently not supported.

## Mapping routes to middleware

The first step is to map a route to PSR-7 middleware. This looks like any other
Expand Down
10 changes: 10 additions & 0 deletions docs/book/migration/to-v3-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,16 @@ LogFormatterManager | `log_formatters` | `Zend\Log\Formatter\LogFormatterProvide
This additions allow you to provide additional plugins for every aspect zend-log
exposes.

## Middleware

Version 2.7 added support for dispatching middleware. If you use this feature and are upgrading to `zend-mvc` 3.1.0 or
higher, the [`zendframework/zend-stratigility:^2.0`](https://github.com/zendframework/zend-stratigility) package
is needed.

```bash
$ composer require zendframework/zend-stratigility:^2.0
```

## Plugins

The following plugins have been removed from the main zend-mvc repository, and
Expand Down