Skip to content

[GraphQL] kernel.view event never fired #2167

Description

@jamesisaac

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions