Symfony Assetic Dump获取类未找到异常

问题描述 投票:1回答:1

当我尝试资产转储php app / console assetic:dump --env = prod时,我得到了错误

  [Symfony\Component\Debug\Exception\ClassNotFoundException]               
  Attempted to load class "Twig_Filter_Method" from the global namespace.  
  Did you forget a "use" statement?

在浏览器中运行我的项目显示错误如: -

ClassNotFoundException in BootstrapIconExtension.php line 51: 

Attempted to load class "Twig_Filter_Method" from the global namespace.
Did you forget a "use" statement?

任何人有任何建议请告诉我..

php symfony classnotfoundexception
1个回答
0
投票

我遇到过同样的问题;对我而言,它与我正在使用的liip imag捆绑版本有关。我已经改变了那个版本并且运行顺利

© www.soinside.com 2019 - 2024. All rights reserved.