在我的Symfony2项目中,访问任何页面时,我(似乎)随机地遇到了错误
InvalidArgumentException: The service definition "templating.helpers.assets" does not exist.
。我已经尝试回到早期的提交,但这并没有改变什么。所以似乎不是我的源代码的问题。我也无法运行composer update
。我已经尝试删除缓存、vendor目录和composer.lock文件,但仍然会出现这个错误:
有任何想法吗?正在使用软件包信息加载composer存储库
更新依赖项(包括require-dev)
生成自动加载文件
更新“app/config/parameters.yml”文件
[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]
服务定义“templating.helpers.assets”不存在。脚本Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache处理post-update-cmd事件时终止了异常
[RuntimeException]
在执行“'cache:clear --no-warmup'”命令时发生错误。
templating.helper.assets
的任何服务?如果是,请展示给我们服务定义。 - Genti Saliucomposer update
成功了,但post-update-cmd
失败了,因为您的 DI 容器中注册的某些内容正在引用templating.helpers.assets
,而该服务未定义。 - Steve Buzonas