首页 > 解决方案 > Symfony 4:重新安装 VichUploaderBundle?

问题描述

我已经用命令安装了VichUploaderBundle

composer require vich/uploader-bundle 

但我忘了像上图一样输入yes(默认为no)。我在我的应用程序中看到了任何 VichUploaderBundle 包。如何在不重新安装的情况下重新启动它?

标签: phpsymfonycomposer-phpvichuploaderbundle

解决方案


由于 vich/uploader-bundle 是通过recipe安装的,你可以重新启动这个 recipe。

强制重新安装而不删除然后需要它:

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

以下是与配方一起使用的其他一些有用的命令:

#List all recipes
composer recipes

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

推荐阅读