symfony-api-platform-ddd-cqrs-boilerplate
symfony-api-platform-ddd-cqrs-boilerplate copied to clipboard
DataProvider question
This seems like a well-developed implementation, so I've been following it for a current project. However, I've run into an issue I'm wondering if you can shed some light on.
I'm trying to implement and endpoint that uses classes patterned after those in theAcme\Application\UseCase\Query\User\GetUsers
namespace. The problem I've found is that Acme\Infrastructure\Bridge\ApiPlatform\DataProvider\CollectionQueryDataProvider
never returns true in the supports()
method because when it's instantiated, the third $dataTransformers
argument does not get passed at all.
Am I missing a Symfony configuration or something that would make the class have the $dataTransformers
array included as the third argument to the constructor during instantiation?