ganesh
ganesh

Reputation: 61

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?

Upvotes: 2

Views: 1162

Answers (1)

Matteo
Matteo

Reputation: 39410

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

Upvotes: 4

Related Questions