将包从供应商移动到 src 目录 [英] moving bundle from vendor to src directory

查看:46
本文介绍了将包从供应商移动到 src 目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 composer 在我的项目的 vendor/目录中安装了 SonataMedia,一切正常.我想将包移动到 src 文件夹以保持一切整洁..

I installed SonataMedia in the vendor/ directory of my project using composer and everything was working fine. I wanted to move the bundle to the src folder to keep everything tidy..

有什么办法可以将 bundle 从供应商移动到 src 目录吗?

is there any way to move bundle from vender to src directory?

推荐答案

是的,复制过去的命名空间目录到 src 目录...

Yes, copy past the namespace directories to the src directory...

但说真的,你为什么想要这个?目录结构并不重要,即使重要,最好将第 3 方包放在供应商目录中,以便将您的包与第 3 方包分开

But really, why do you want this? The directory structure is not important and even if it was, it is better to put the 3th party bundles in the vendor directory to seperate your bundles from 3th party bundles

这篇关于将包从供应商移动到 src 目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆