简体   繁体   English

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

[英]The service “sonata.block.service.container” has a dependency on a non-existent service “templating”

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

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

Make sure twig is installed and available in your configuration: 确保已在您的配置中安装并提供了twig:

# app/config/config.yml

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

Source: Stack Overflow #47656816 来源: Stack Overflow#47656816

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Symfony2错误:服务“模板”依赖于不存在的服务“ templating.globals” - Symfony2 error: The service “templating” has a dependency on a non-existent service “templating.globals” 奏鸣曲管理员:不存在的服务“security.authorization_checker” - Sonata Admin: non-existent service "security.authorization_checker" Symfony 2,ServiceNotFoundException,不存在的服务“ templating.engine.php” - Symfony 2, ServiceNotFoundException, non-existent service “templating.engine.php” 您请求了一个不存在的服务“模板” - You have requested a non-existent service "templating" 服务“ security.context_listener.0”依赖于不存在的服务“ fos_user.user_manager” - The service “security.context_listener.0” has a dependency on a non-existent service “fos_user.user_manager” 服务“ twig”依赖于不存在的服务“ security.context” - The service “twig” has a dependency on a non-existent service “security.context” 服务“ form.type.users”依赖于不存在的服务“ security.context” - The service “form.type.users” has a dependency on a non-existent service “security.context” 服务“App\Decorator\DomainHydraDecorator”依赖于一个不存在的服务“api_platform.hydra.normalizer.error” - The service "App\Decorator\DomainHydraDecorator" has a dependency on a non-existent service "api_platform.hydra.normalizer.error" Symfony突然失败,“服务”session.storage.metadata_bag“依赖于不存在的参数” - Symfony is suddenly failing with “The service ”session.storage.metadata_bag“ has a dependency on a non-existent parameter” Symfony:服务...依赖于不存在的参数kernel.secret - Symfony: The service … has a dependency on a non-existent parameter kernel.secret
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM