Skip to content

Commit

Permalink
Merge pull request #126 from cvigano/fix-typos-in-docs
Browse files Browse the repository at this point in the history
Fix typos in docs
  • Loading branch information
Ocramius authored Dec 1, 2022
2 parents 82f61f1 + 28f8e5b commit cf1dc9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/book/v2/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,13 @@ $request = ServerRequestFactory::fromGlobals(
$_COOKIE,
$_FILES
);
```

### Request Filters

Since version 2.11.1, this method takes the additional optional argument `$requestFilter`.
This should be a `null` value, or an instance of [`Laminas\Diactoros\ServerRequestFilter\FilterServerRequestInterface`](server-request-filters.md).
For version 2 releases, if a `null` is provided, internally the method will assign a [`Laminas\Diactoros\ServerRequestFilter\FilerUsingXForwardedHeaders`](server-request-filters.md#filterusingxforwardedheaders) instance configured as follows:
For version 2 releases, if a `null` is provided, internally the method will assign a [`Laminas\Diactoros\ServerRequestFilter\FilterUsingXForwardedHeaders`](server-request-filters.md#filterusingxforwardedheaders) instance configured as follows:

```php
$requestFilter = $requestFilter ?: FilterUsingXForwardedHeaders::trustReservedSubnets();
Expand Down
2 changes: 1 addition & 1 deletion docs/book/v2/server-request-filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Common use cases include:
- Generating and injecting a request ID.
- Modifying the request URI based on headers provided (e.g., based on the `X-Forwarded-Host` or `X-Forwarded-Proto` headers).

## FilerServerRequestInterface
## FilterServerRequestInterface

A request filter implements `Laminas\Diactoros\ServerRequestFilter\FilterServerRequestInterface`:

Expand Down

0 comments on commit cf1dc9e

Please sign in to comment.