Skip to content

Commit b11141b

Browse files
authored
Wrong injected service referenced
Text reference to injected service ($myService) doesn't match the service injected in the code snippet. (BookPublishingHandler $bookPublishingHandler)
1 parent bf4b09e commit b11141b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/operations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ and for `POST` and `PUT` requests updates the entity with data provided by the u
587587

588588
**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!
589589

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

593593
The `__invoke` method of the action is called when the matching route is hit. It can return either an instance of

0 commit comments

Comments
 (0)