Skip to content

Conversation

@NathanPesneau
Copy link
Contributor

Completes #2210

Add documentation for metadata mutators (Resource Mutator and Operation Mutator)

@soyuka
Copy link
Member

soyuka commented Nov 13, 2025

can you put this section into https://github.com/api-platform/docs/blob/4.2/core/operations.md and maybe a mention inside https://github.com/api-platform/docs/blob/4.2/core/extending.md ?

use App\Entity\Book;

#[AsResourceMutator(resourceClass: Book::class)]
final class BookResourceMutator implements ResourceMutatorInterface
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could show the repeatable behavior here and create a more generic mutator?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants