Bug with JMSSerializerBundle #345

Closed
IgorN opened this Issue Dec 18, 2012 · 3 comments

3 participants

@IgorN

Hello! I tried to install "friendsofsymfony/rest-bundle": "0.10.0"
and "friendsofsymfony/rest-bundle": "0.11.*@dev"
But when the bundle and its dependencies were installed, the folder serializer-bundle (vendor/jsm) was empty.
And I had exception PHP Fatal error: Class 'JMS\SerializerBundle\JMSSerializerBundle' not found in /my_path/app/AppKernel.php on line 32
If I remove "new JMS\SerializerBundle\JMSSerializerBundle($this) " from my AppKernel.php
I catch other exception
[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]

The service definition "jms_serializer.serializer" does not exist.

But If I install "friendsofsymfony/rest-bundle": "0.9.0" then everything is fine.

@IgorN

I tried to use php composer.phar update --dev

@stof
FriendsOfSymfony member

JMSSerializerBundle is no longer marked as a required dependency of FOSRestBundle as it was in fact possible to sue the Symfony Serializer component instead. So now, you have to add it in your composer.json if you use it

@IgorN

Ok, I understand. Thank you!

@schmittjoh schmittjoh closed this Dec 18, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment