youshido-php/GraphQLBundle

JMS Serializer Conflict?

The-Don-Himself opened this issue · 1 comments

Thanks for developing this trendy project which I am very eager to try out. Followed the instructions to the letter but getting an error

Catchable Fatal Error: Argument 3 passed to JMS\Serializer\Serializer::serialize() must be an instance of JMS\Serializer\SerializationContext, array given, called in C:\wamp64\www\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Controller\Controller.php on line 118 and defined

I'm (currently) on windows and have JMS Serializer Installed, the issue occurs after this step

try to access url localhost:8000/graphql

schmittjoh/JMSSerializerBundle#523

Was a JMS Serializer Symfony 3 related issue but was affecting this bundle.

Solution....

# app/config/config.yml

jms_serializer:
    enable_short_alias: false