Symfony 4: Re-install VichUploaderBundle?

Viewed 445

I have installed VichUploaderBundle with command

composer require vich/uploader-bundle 

but I forgot enter yes like the above image (default is no). And I see any VichUploaderBundle package in my app. How can I relaunch it without reinstall it?

2 Answers

As vich/uploader-bundle is installed via a recipe, you could relaunch this recipe.

Force reinstallation without removing then requiring it:

composer recipes:install vich/uploader-bundle --force -v

Here is some other useful command to use with recipes:

#List all recipes
composer recipes

#See detailed information about your bundle
composer recipes vich/uploader-bundle

There is no other solution than remove it and then re-install it again using these commands

composer remove vich/uploader-bundle

cache:clear

composer require vich/uploader-bundle
Related