-
-
Notifications
You must be signed in to change notification settings - Fork 926
Description
API Platform version(s) affected: 2.6.5
Description
I'm upgrading to the last version of the framework and get this error on composer install:
!! Cannot autowire service "App\DataPersister\ProductDataPersister": argument
!! "$decorated" of method "__construct()" references interface "ApiPlatform\Co
!! re\DataPersister\ContextAwareDataPersisterInterface" but no such service ex
!! ists. Try changing the type-hint to "ApiPlatform\Core\DataPersister\DataPer
!! sisterInterface" instead.
Works like a charm with the previous framework bundle version.
How to reproduce
Create a custom decorated DataPersister like defined on the doc :
https://api-platform.com/docs/core/data-persisters/#decorating-the-built-in-data-persisters
Possible Solution
Additional Context