Skip to content

Commit

Permalink
Make the v4 docs active.
Browse files Browse the repository at this point in the history
Also updates the migration guide with information about `IterableMiddlewarePipeInterface`

Signed-off-by: George Steel <[email protected]>
  • Loading branch information
gsteel committed Jul 17, 2024
1 parent 176cf8d commit 18a40bc
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
4 changes: 4 additions & 0 deletions docs/book/v4/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ public function __construct(ResponseFactoryInterface $responseFactory){}

## Changes in public interfaces

### MiddlewarePipe is now Iterable

`MiddlewarePipe` now implements a new interface `IterableMiddlewarePipeInterface`. This makes the pipeline iterable and provides a way of inspecting the composed middleware.

Check failure on line 41 in docs/book/v4/migration.md

View workflow job for this annotation

GitHub Actions / ci / QA Checks (Documentation Linting [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integra...

Trailing spaces [Expected: 0 or 2; Actual: 1]

### Signature changes

- `Laminas\Stratigility\Handler\NotFoundHandler::__construct()`: the parameter `$responseFactory` changed from `callable` to `Psr\Http\Message\ResponseFactoryInterface`.
Expand Down
30 changes: 21 additions & 9 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,25 @@ docs_dir: docs/book
site_dir: docs/html
extra:
project: Components
current_version: v3
current_version: v4
versions:
- v4
- v3
- v2
- v1
nav:
- Home: index.md
- v4:
- Intro: v4/intro.md
- Reference:
- "Installation and Requirements": v4/install.md
- Usage: v4/usage.md
- Middleware: v4/middleware.md
- "Error Handlers": v4/error-handlers.md
- "Creating Middleware": v4/creating-middleware.md
- "Composing middleware": v4/executing-middleware.md
- "API Reference": v4/api.md
- Migration: v4/migration.md
- v3:
- Intro: v3/intro.md
- Reference:
Expand Down Expand Up @@ -44,11 +56,11 @@ plugins:
- search
- redirects:
redirect_maps:
install.md: v3/install.md
usage.md: v3/usage.md
middleware.md: v3/middleware.md
error-handlers.md: v3/error-handlers.md
creating-middleware.md: v3/creating-middleware.md
executing-middleware.md: v3/executing-middleware.md
api.md: v3/api.md
migration.md: v3/migration.md
install.md: v4/install.md
usage.md: v4/usage.md
middleware.md: v4/middleware.md
error-handlers.md: v4/error-handlers.md
creating-middleware.md: v4/creating-middleware.md
executing-middleware.md: v4/executing-middleware.md
api.md: v4/api.md
migration.md: v4/migration.md

0 comments on commit 18a40bc

Please sign in to comment.