简体   繁体   中英

Unrecognized options “gaufrette” under “vich_uploader”

I got following error when I update the 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:
   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:

vich_uploader:
    db_driver: orm
    storage:   gaufrette

See the doc for further details

hope this help

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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