我的项目不需要任何树枝功能或模板。
我从
移除了树枝当我现在运行作曲家时,它会说
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
我还忘记删除什么?
您正在使用网络分析器,当您使用时,您需要 Twig。
在这种情况下,声明“我的项目不需要任何树枝功能或模板”是不正确的。您在生产中不需要此功能,但您在开发中使用它(如果是间接的)。
您的选择是:
composer why twig/twig
可能是个好主意)。
composer install twig/twig --dev
)