Skip to content

Commit f938287

Browse files
authored
fix: link in controllers.md (#1516)
1 parent e886bb2 commit f938287

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/controllers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ This action will be automatically registered as a service (the service name is t
6868
API Platform automatically retrieves the appropriate PHP entity using the data provider then deserializes user data in it,
6969
and for `POST`, `PUT` and `PATCH` requests updates the entity with data provided by the user.
7070

71-
**Warning: the `__invoke()` method parameter [MUST be called `$data`](https://symfony.com/doc/current/components/http_kernel.html#getting-the-controller-arguments)**, otherwise, it will not be filled correctly!
71+
**Warning: the `__invoke()` method parameter [MUST be called `$data`](https://symfony.com/doc/current/components/http_kernel.html#4-getting-the-controller-arguments)**, otherwise, it will not be filled correctly!
7272

7373
Services (`$bookPublishingHandler` here) are automatically injected thanks to the autowiring feature. You can type-hint any service
7474
you need and it will be autowired too.

0 commit comments

Comments
 (0)