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