Skip to content

Commit d5aa8c5

Browse files
authored
Merge pull request #19 from arueckauer/fix/doc-usage
Fixes example of protecting an entire sub-path
2 parents 0b1390a + 993fa4c commit d5aa8c5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/book/v1/usage.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ authentication, use [path-segregation](https://docs.laminas.dev/laminas-stratigi
2424
use Mezzio\Authentication\AuthenticationMiddleware;
2525

2626
// In the callback:
27-
$app->pipe('/api', $factory->path(
28-
$factory->prepare(AuthenticationMiddleware::class)
29-
));
27+
$app->pipe('/api', AuthenticationMiddleware::class);
3028
```
3129

3230
## For a specific route

0 commit comments

Comments
 (0)