我正在尝试安装qcm软件包https://github.com/avoo/QcmCoreBundle,我不明白在这一步中我必须做什么:
覆盖服务
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)
如果要覆盖服务,则缺少缩进:
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