【发布时间】:2021-06-19 19:56:55
【问题描述】:
我的项目不需要任何树枝功能或模板。
我移除了树枝
- composer.json
- bundles.php
- 我删除了所有配置树枝文件(yml 文件)
- 我删除了 html 模板 (index.html.twig)
当我现在运行 composer 它说
Script cache:clear returned with error code 1
!!
!! In CheckExceptionOnInvalidReferenceBehaviorPass.php line 86:
!!
!! The service "web_profiler.controller.profiler" has a dependency on a non-ex
!! istent service "twig". Did you mean one of these: "maker.maker.make_twig_ex
!! tension", "maker.auto_command.make_twig_extension"?
!!
!!
!!
Script @auto-scripts was called via post-install-cmd
我还忘了删除什么?
【问题讨论】:
-
您真的需要删除它吗?不就是不使用的情况吗。
-
我为什么要安装我不使用的软件包?只是想知道。
-
您所面临的困难表明了它可能导致的问题。并不是说您不使用它们,而是可能有其他软件包希望它们在那里。 PHP 中可能安装了一些您从不使用的模块,但您会删除它们吗?
-
请分享更多细节。您是如何准确地删除 Twig 的?
标签: php symfony composer-php twig