API Platform 3.2 ошибка при DELETE

17 апр. 2024 г.

Could not resolve argument $data of "api_platform.action.placeholder::__invoke()", maybe you forgot to register the controller as a service or missed tagging it with the "controller.service_arguments"?

Проблема#

В моём случае ошибка возникала при включении в config/packages/api_platform.yaml event_listeners_backward_compatibility_layer, чтобы подписываться на событие \ApiPlatform\Symfony\EventListener\EventPriorities::POST_WRITE.

Решение#