服务“sonata.block.service.container”依赖于不存在的服务“模板化”

时间:2017-12-15 10:09:19

标签: php symfony sonata-admin

我在使用SonataAdminBundle时,由composer安装此捆绑包时显示此错误:

The service "sonata.block.service.container" has a dependency on a non-existent service "templating".

1 个答案:

答案 0 :(得分:9)

确保已在您的配置中安装并提供了twig:

# app/config/config.yml

framework:
    # ...
    templating:
        engines: ['twig']

来源:Stack Overflow #47656816