Skip to content

Commit 09d9319

Browse files
authored
Merge pull request #840 from yivi/patch-2
Wrong injected service referenced
2 parents c858c70 + b11141b commit 09d9319

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)