“vich_uploader”下无法识别的选项“gaufrette”

当我更新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 Uploaderconfiguration

  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 

有关详细信息, 请参阅文档

希望这个帮助