Php 服务";索纳塔。街区。服务。集装箱“;依赖于不存在的服务;模板化;
当composer安装此捆绑包时,我使用from SonatAdminBundle显示以下错误:Php 服务";索纳塔。街区。服务。集装箱“;依赖于不存在的服务;模板化;,php,symfony,sonata-admin,Php,Symfony,Sonata Admin,当composer安装此捆绑包时,我使用from SonatAdminBundle显示以下错误: The service "sonata.block.service.container" has a dependency on a non-existent service "templating". 确保在您的配置中安装了twig并可用: # app/config/config.yml framework: # ... templating: engines:
The service "sonata.block.service.container" has a dependency on a non-existent service "templating".
确保在您的配置中安装了twig并可用:
# app/config/config.yml
framework:
# ...
templating:
engines: ['twig']
来源:这段代码不清楚,但“模板”应该是“框架”的子版本。谢谢你发现了错误,我刚刚编辑了它