Skip to content

Commit aad3063

Browse files
authored
fix: remove obsolete warning (#1743)
1 parent 7fcd6d7 commit aad3063

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

core/controllers.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ The entity is retrieved in the `__invoke` method thanks to a dedicated argument
7272

7373
When using `GET`, the `__invoke()` method parameter will receive the identifier and should be called the same as the resource identifier.
7474
So for the path `/user/{uuid}/bookmarks`, you must use `__invoke(string $uuid)`.
75-
**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!
7675

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

0 commit comments

Comments
 (0)