سؤال

After installing JMS Serializer Bundle following the provided instructions using the deps file, I get the following error:

Fatal error: Class 'Symfony\Component\HttpKernel\DependencyInjection\ConfigurableExtension' not found in /vendor/bundles/JMS/SerializerBundle/DependencyInjection/JMSSerializerExtension.php on line 30

The class does not exist within Symfony. I am using Symfony v2.0.17. Is there any fix for this?

هل كانت مفيدة؟

المحلول

It's not mentioned in the docs that you need to use a particular version of the bundle for Symfony 2.0.x:

[JMSSerializerBundle]
    git=git://github.com/schmittjoh/JMSSerializerBundle.git
    target=bundles/JMS/SerializerBundle
    version=0.9.0
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top