2016-04-17 20 views
0

我试图安装QCM束https://github.com/avoo/QcmCoreBundle,我不明白我在这个步骤做:安装QCMBundle,越权服务

越权服务

qcm_core: 
    service: 
     statistics: 
      class: MyBundle\Statistics\Class // For better compatibility extends the Model\QuestionnaireStatistics 
      template: MyBundle\Answers\Template\Class // You need to implements the qcm TemplateInterface 

这是错误的由于这一步

[Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException] 
    The service "qcm_core.form.type.user" has a dependency on a non-existent pa 
    rameter "qcm_core.model.user.class". Did you mean one of these: "fos_user.m 
    odel.user.class", "qcm.model.user.class", "qcm_core.template.class", "qcm_c 
    ore.controller.user.class", "qcm_core.form.type.user.class"? 
+0

看来这一步不是必需的,你可以使用这个包而不覆盖默认服务 –

+0

我有这个错误,我认为这是由于这一步[Symfony \ Component \ DependencyInjection \ Exception \ ParameterNotFoundException] 服务“qcm_core.form.type.user”依赖于不存在的pa“”rameter“qcm_core.model.user.class”。你的意思是其中之一:“fos_user.m odel.user.class”,“qcm.model.user.class”,“qcm_core.template.class”,“qcm_c ore.controller.user.class”,“ qcm_core.form.type.user.class“? – R14

+0

您应该直接向github上的软件包所有者索要此问题。 –

回答

0

如果要覆盖服务,你缺少一个缩进:

qcm_core: 
    service: 
     statistics: 
      class: MyBundle\Statistics\Class // For better compatibility extends the Model\QuestionnaireStatistics 
      template: MyBundle\Answers\Template\Class // You need to implements the qcm TemplateInterface