gpt4 book ai didi

symfony - Symfony 2 Assets fatal error :在 Assets 转储中找不到类 'Assetic\Util\PathUtils'

转载 作者:行者123 更新时间:2023-12-03 11:47:03 27 4
gpt4 key购买 nike

我正在使用带有Assetic的Symfony 2.1.10版,并且在上次 Composer 更新之后,当我尝试运行php app/console assetic:dump时出现以下错误

Dumping all dev assets.
Debug mode is on.
Fatal error: Class 'Assetic\Util\PathUtils' not found in /vendor/symfony/assetic-bundle/Symfony/Bundle/AsseticBundle/Command/DumpCommand.php on line 216

我不知道这里出了什么问题。我检查了Assetic和Symfony 2的GitHub问题页面,找不到任何信息...

config.yml:
# Assetic Configuration
assetic:
debug: "%kernel.debug%"
use_controller: false
bundles: ['FOSUserBundle', 'vaamoLandingPageBundle']
#java: /usr/bin/java
filters:
cssrewrite: ~
#closure:
# jar: "%kernel.root_dir%/Resources/java/compiler.jar"
#yui_css:
# jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"

composer.js:
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.1.*",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.1.*",
"twig/extensions": "1.0.*@dev",
"symfony/assetic-bundle": "2.1.*",
...
},

最佳答案

更改

"symfony/assetic-bundle": "2.1.*"


"symfony/assetic-bundle": "2.3.*"

比它应该工作的

关于symfony - Symfony 2 Assets fatal error :在 Assets 转储中找不到类 'Assetic\Util\PathUtils',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16655664/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com