Closed hjanuschka closed 4 years ago
Can you provide the old version of the bundle before upgrading ?
it was: v0.11.18
- and now it is: 0.13.1
but even downgrading to 0.11.18 in symfony 5.0.x and php 7.4 results in the same errors :/
downgrading symfony to 4.3.x ->
results in resolvers showing up:
GraphQL Resolvers Services
==========================
------------------------------------------------------------------------------ --------------------------------
solution id aliases
------------------------------------------------------------------------------ --------------------------------
App\GraphQL\Resolver\CommentsByArticleResolver::resolve CommentsByArticle
App\GraphQL\Resolver\MediaResolver::objProperty
App\GraphQL\Resolver\MediaResolver::resolve Media
App\GraphQL\Resolver\MostReadResolver::cleanArticleParams
App\GraphQL\Resolver\MostReadResolver::getArticleCollection
App\GraphQL\Resolver\MostReadResolver::getPost
App\GraphQL\Resolver\MostReadResolver::getPostCollection
App\GraphQL\Resolver\MostReadResolver::getRessort
App\GraphQL\Resolver\MostReadResolver::getService
App\GraphQL\Resolver\MostReadResolver::resolve MostRead
App\GraphQL\Resolver\OewaResolver::resolve Oewa
App\GraphQL\Resolver\PiTrackerResolver::resolve PiTracker
App\GraphQL\Resolver\PostListResolver::cleanArticleParams
App\GraphQL\Resolver\PostListResolver::getArticleCollection
App\GraphQL\Resolver\PostListResolver::getPost
App\GraphQL\Resolver\PostListResolver::getPostCollection
App\GraphQL\Resolver\PostListResolver::getRessort
App\GraphQL\Resolver\PostListResolver::getService
App\GraphQL\Resolver\PostListResolver::resolve PostList
App\GraphQL\Resolver\PostResolver::resolve Post
App\GraphQL\Resolver\PropertyResolver::resolve PropertyResolver
App\GraphQL\Resolver\RessortListResolver::cleanArticleParams
App\GraphQL\Resolver\RessortListResolver::getArticleCollection
App\GraphQL\Resolver\RessortListResolver::getPost
App\GraphQL\Resolver\RessortListResolver::getPostCollection
App\GraphQL\Resolver\RessortListResolver::getRessort
App\GraphQL\Resolver\RessortListResolver::getService
App\GraphQL\Resolver\RessortListResolver::resolve RessortList
App\GraphQL\Resolver\RessortResolver::resolve Ressort
App\GraphQL\Resolver\TopCommentedResolver::cleanArticleParams
App\GraphQL\Resolver\TopCommentedResolver::getArticleCollection
App\GraphQL\Resolver\TopCommentedResolver::getPost
App\GraphQL\Resolver\TopCommentedResolver::getPostCollection
App\GraphQL\Resolver\TopCommentedResolver::getRessort
App\GraphQL\Resolver\TopCommentedResolver::getService
App\GraphQL\Resolver\TopCommentedResolver::resolve TopCommented
App\GraphQL\Resolver\UserResolver::resolve User
App\GraphQL\Resolver\ZodiacResultResolver::resolve ZodiacResult
Overblog\GraphQLBundle\GraphQL\Relay\Mutation\MutationFieldResolver relay_mutation_field
Overblog\GraphQLBundle\GraphQL\Relay\Node\GlobalIdFieldResolver relay_globalid_field
Overblog\GraphQLBundle\GraphQL\Relay\Node\NodeFieldResolver relay_node_field
Overblog\GraphQLBundle\GraphQL\Relay\Node\PluralIdentifyingRootFieldResolver relay_plural_identifying_field
so it is not about php7.4
What the result when debugging container autowire for Symfony 4.3 and 5 ?
autowiring does not see them :o
got it, its a bit weird.
adding
App\GraphQL\Resolver\:
resource: '../../../GraphQL/Resolver'
to the autowire definition, started loading the classes, and showed the real error:
PHP Fatal error: Declaration of App\GraphQL\Resolver\MediaResolver::getAliases() must be compatible with Overblog\GraphQLBundle\Definition\Resolver\AliasedInterface::getAliases(): array
changing the definition of all my resolversgetAlias
method, adding : array
- fixed it.
after this change, i can even remove the autowire definition in the yaml again.
many thx! for fast response, and for your great work on this project!!! highly appreciate!
we upgraded to symfony5 and php 7.4 and out of a sudden, graphql cannot find any resolvers anymore:
graphql:debug only shows: