更新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上传器配置
vich_uploader:
db_driver: orm
gaufrette: true
storage: vich_uploader.storage.gaufrette
我收到了这个错误......
[Symfony\Component\Config\Definition\Exception\InvalidConfigurationException]
Unrecognized options "gaufrette" under "vich_uploader"
请让我知道为什么会这样?
答案 0 :(得分:4)
检查config.yml的缩进,选项" gaufrette"不在" vich_uploader" 但作为存储价值,例如:
vich_uploader:
db_driver: orm
storage: gaufrette
See the doc了解更多详情
希望这个帮助