Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Trozowski <tobias@trozowski.com>
  • Loading branch information
tobias-trozowski authored and weierophinney committed Dec 21, 2020
1 parent 068c41d commit 9027d04
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/book/cookbook/generating-custom-resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ interface StrategyInterface
$instance,
Metadata\AbstractMetadata $metadata,
ResourceGenerator $resourceGenerator,
ServerRequestInterface $request
ServerRequestInterface $request,
int $depth = 0
) : HalResource;
}
```
Expand Down
1 change: 1 addition & 0 deletions docs/book/factories.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ The additional pairs are as follows:
- `route_params`: an array of additional routing parameters to use when
generating the self relational link for the resource.
- `identifiers_to_placeholders_mapping` (associative array mapping resource properties to routing parameters, for use when generating the URI; since 1.4.0)
- `max_depth`: the number of nesting levels processed. Defaults to 10.
- For `RouteBasedCollectionMetadata`:
- `collection_class`: the collection class the metadata describes.
- `collection_relation`: the embedded relation for the collection in the
Expand Down
1 change: 1 addition & 0 deletions docs/book/resource-generator.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ following information:
- array `$routeParams = []` (associative array of additional routing
parameters to substitute when generating the URI)
- array `$identifiersToPlacholdersMapping = []` (associative array mapping resource properties to route parameters, for use when generating the URI; available since 1.4.0)
- int `$maxDepth = 10` max allowed nesting levels.
- `Mezzio\Hal\Metadata\UrlBasedCollectionMetadata`:
- string `$class`
- string `$collectionRelation`
Expand Down

0 comments on commit 9027d04

Please sign in to comment.