2

更新 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"

请让我知道为什么会这样?

4

1 回答 1

4

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

vich_uploader:
    db_driver: orm
    storage:   gaufrette

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

希望这有帮助

于 2014-12-17T06:22:46.277 回答