Closed
Description
The API Platform Event System Documentation lists many places in the request/response cycle you may want to attach your own listeners, the majority of them on kernel.view
. This uses GetResponseForControllerResultEvent
which is a helpful event, as you can do some useful things with the controller result. I've had good results adding some business logic to my API here (e.g. advanced authorization, sending out automated emails).
However in my experiments with using GraphQL, the kernel.view
event doesn't seem to be getting fired for either queries or mutations?
Is this intentional? This makes it hard to offer a dual REST/GraphQL API that offers the same behaviour when similar actions are performed...?
Symfony: 4.0
API Platform: 2.2.8