我使用SonataAdminBundle安装此捆绑包时由composer显示此错误:
The service "sonata.block.service.container" has a dependency on a non-existent service "templating".
确保已在您的配置中安装并提供了twig:
# app/config/config.yml
framework:
# ...
templating:
engines: ['twig']