Skip to content

Commit

Permalink
Merge pull request #840 from yivi/patch-2
Browse files Browse the repository at this point in the history
Wrong injected service referenced
  • Loading branch information
dunglas committed Jun 24, 2019
2 parents c858c70 + b11141b commit 09d9319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/operations.md
Expand Up @@ -587,7 +587,7 @@ and for `POST` and `PUT` requests updates the entity with data provided by the u

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

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

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

0 comments on commit 09d9319

Please sign in to comment.