Skip to content

Commit

Permalink
docs(readme): add missing paramconverter
Browse files Browse the repository at this point in the history
  • Loading branch information
ckrack committed May 26, 2020
1 parent cbfaa14 commit 1c071e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ options:
```php
/**
* @Route("/users/{user}")
*
* @ParamConverter("user", options={"optimus" = "user"})
*/
public function getAction(int $user)
Expand All @@ -110,7 +109,8 @@ Based on the example above:

```php
/**
* @Route("/users/{optimus}")
* @Route("/users/{user}")
* @ParamConverter("user")
*/
public function getAction(User $user)
{
Expand Down

0 comments on commit 1c071e8

Please sign in to comment.