Skip to content

Commit

Permalink
Merge pull request #19 from arueckauer/fix/doc-usage
Browse files Browse the repository at this point in the history
Fixes example of protecting an entire sub-path
  • Loading branch information
froschdesign authored May 4, 2022
2 parents 0b1390a + 993fa4c commit d5aa8c5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/book/v1/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5aa8c5

Please sign in to comment.