Symfony 安装QCMBundle覆盖服务
我正在尝试安装qcm捆绑包,但我不明白在这一步中要做什么: 覆盖服务Symfony 安装QCMBundle覆盖服务,symfony,sylius,Symfony,Sylius,我正在尝试安装qcm捆绑包,但我不明白在这一步中要做什么: 覆盖服务 qcm_core: service: statistics: class: MyBundle\Statistics\Class // For better compatibility extends the Model\QuestionnaireStatistics template: MyBundle\Answers\Template\Class //
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"?
如果要覆盖服务,则缺少缩进:
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]服务“qcm\U core.form.type.user”依赖于不存在的参数“qcm_core.model.user.class”。你是指其中一个:“fos_user.m odel.user.class”、“qcm.model.user.class”、“qcm_core.template.class”、“qcm_core.controller.user.class”、“qcm_core.form.type.user.class”?你应该直接向github上的包所有者询问这个问题。