State Provider

Creates state providers for read operations in API Platform — the read/Query side of its CQRS-style provider/processor split. Use whenever GET data needs custom retrieval or shaping — computed or enriched fields, transforming entities to different DTOs, decorating built-in Doctrine providers, sortable computed fields via repositoryMethod — or any 'the response should also include X' request, or to understand when a provider runs vs a processor (the read vs write phase), even if the user doesn't say 'provider'.

api-platform f8d4598 9.5 KB Updated

File contents

api-platform/skillset/tree/main/skills/state-provider commit f8d45981ca

Frequently asked questions

npx skillmds@latest add api-platform/state-provider