找不到类'Symfony \ Component \ HttpKernel \ DependencyInjection \ ConfigurableExtension'

时间:2012-10-20 10:00:48

标签: symfony symfony-2.0 jmsserializerbundle

JMS Serializer Bundle之后安装provided instructions using the deps file后,我收到以下错误:

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

Symfony中不存在该类。我正在使用Symfony v2.0.17。有没有解决这个问题?

1 个答案:

答案 0 :(得分:7)

在文档中没有提到您需要为Symfony 2.0.x使用特定版本的软件包:

[JMSSerializerBundle]
    git=git://github.com/schmittjoh/JMSSerializerBundle.git
    target=bundles/JMS/SerializerBundle
    version=0.9.0