简体   繁体   English

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

[英]Unrecognized options “gaufrette” under “vich_uploader”

I got following error when I update the composer.phar... 更新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.

Here is my Vich Uploader Configuration 这是我的Vich Uploader配置

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

and i got this error... 我得到这个错误...

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

please let me know why it happened? 请让我知道为什么会这样吗?

Check the indentation of your config.yml, the options "gaufrette" is not under "vich_uploader" but as storage value, as example: 检查config.yml的缩进,选项“ gaufrette”不在“ vich_uploader”下,而是作为存储值,例如:

vich_uploader:
    db_driver: orm
    storage:   gaufrette

See the doc for further details 有关更多详细信息, 请参阅文档

hope this help 希望这个帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM