We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 679a406 + d5aa8c5 commit 9d521b7Copy full SHA for 9d521b7
1 file changed
docs/book/v1/usage.md
@@ -24,9 +24,7 @@ authentication, use [path-segregation](https://docs.laminas.dev/laminas-stratigi
24
use Mezzio\Authentication\AuthenticationMiddleware;
25
26
// In the callback:
27
-$app->pipe('/api', $factory->path(
28
- $factory->prepare(AuthenticationMiddleware::class)
29
-));
+$app->pipe('/api', AuthenticationMiddleware::class);
30
```
31
32
## For a specific route
0 commit comments