Unrecognized options "gaufrette" under "vich_uploader"

1.1k views Asked by At

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?

1

There are 1 answers

2
Matteo On

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