AsseticBundle removed from all the Symfony's versions

喜夏-厌秋 提交于 2019-11-29 18:25:02

The AsseticBundle is not compatible/maintained with the new version of the framework (2.8/3.x).

See the tweet of Fabpot that asking: Honest question: is #Assetic still relevant for #Symfony 3.0?

And the PR remove AsseticBundle (you can find good discussion about for and against the removal of Assetic).

Check also this great article on Symfony and Asset Management that clarify and riassume all the discussion around.

Hope this help

Although Symfony does not support assetic from versions 2.8 upwards, you can still install it by running:

composer require symfony/assetic-bundle

and then enable the bundle in your AppKernel.php like so:

new Symfony\Bundle\AsseticBundle\AsseticBundle()
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!