gpt4 book ai didi

php - "gaufrette"下无法识别的选项 "vich_uploader"

转载 作者:太空狗 更新时间:2023-10-29 11:44:18 27 4
gpt4 key购买 nike

更新 composer.phar 时出现以下错误...

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Unrecognized options "gaufrette" under "vich_uploader"



Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-update-cmd event terminated with an exception



[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'" command.

这是我的 Vich uploader 配置

   vich_uploader:
db_driver: orm
gaufrette: true
storage: vich_uploader.storage.gaufrette

我得到了这个错误...

[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Unrecognized options "gaufrette" under "vich_uploader"

请告诉我为什么会这样?

最佳答案

检查 config.yml 的缩进,选项“gaufrette”不在“vich_uploader”下 但作为存储值,例如:

vich_uploader:
db_driver: orm
storage: gaufrette

See the doc更多详情

希望对你有帮助

关于php - "gaufrette"下无法识别的选项 "vich_uploader",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27518594/

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