php - Symfony 4:重新安装 VichUploaderBundle?
问题描述
我已经用命令安装了VichUploaderBundle
composer require vich/uploader-bundle
但我忘了像上图一样输入yes(默认为no)。我在我的应用程序中看到了任何 VichUploaderBundle 包。如何在不重新安装的情况下重新启动它?
解决方案
由于 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
推荐阅读
- android - 使用 Firebase 作业调度程序运行服务直到下一个计划
- avl-tree - 如何平衡 AVL 树中的悬空节点
- javascript - 更改每个选项的占位符文本
- javascript - 如何使用struts和jquery将行的值传递给单选按钮
- android-studio - 更新到 Android Oreo 后出现奇怪的编辑框
- xamarin.forms - 如何更改 Xamarin.forms 中选项卡项的大小
- asp.net-core - 来自 jsonschema 文件的 Swashbuckle 远程定义
- c# - C# Gradebook 程序,从文本文件中读取数据
- java - Java JSP servlet 500 错误
- c# - Selenium webdriver C#:无法识别 HTML 表单标签内的按钮元素