From 993fa4c6c989d9ccedbdcd927f9a45bd89502909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andi=20R=C3=BCckauer?= Date: Wed, 4 May 2022 14:25:33 +0200 Subject: [PATCH] Fixes example of protecting an entire sub-path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andi Rückauer --- docs/book/v1/usage.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/book/v1/usage.md b/docs/book/v1/usage.md index 90c5b12..4a0234f 100644 --- a/docs/book/v1/usage.md +++ b/docs/book/v1/usage.md @@ -24,9 +24,7 @@ authentication, use [path-segregation](https://docs.laminas.dev/laminas-stratigi use Mezzio\Authentication\AuthenticationMiddleware; // In the callback: -$app->pipe('/api', $factory->path( - $factory->prepare(AuthenticationMiddleware::class) -)); +$app->pipe('/api', AuthenticationMiddleware::class); ``` ## For a specific route