Skip to content

GraphQL non-existent services issue. #5919

@durimjusaj

Description

@durimjusaj

API Platform version(s) affected: 3.2

Description
GraphQL resolver services can not be found if kernel.debug is false.

How to reproduce
I have services that decorates api_platform.graphql.resolver.stage.write, also another service which decorates api_platform.graphql.resolver.factory.item and this service needs api_platform.graphql.resolver.stage.read argument.

Both api_platform.graphql.resolver.stage.write and api_platform.graphql.resolver.stage.read are throwing error for non-existent service when I try to install api-platform/core@3.2.

I can see both services are moved to /config/legacy/graphql.xml, which is loaded only if kernel.debug is true in ApiPlatformExtension.php line 586.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions