我有以下composer.json:
{
"name": "fuel/fuel",
"type": "metapackage",
"description": "The FuelPHP framework",
"keywords": ["framework"],
"homepage": "http://fuelphp.com",
"license": "MIT",
"authors": [
{
"name": "FuelPHP Development Team",
"email": "team@fuelphp.com"
}
],
"require": {
"php": ">=5.3.3",
"monolog/monolog": "1.5.*",
"fuelphp/upload": "2.0.1",
"twig/twig": "1.15.1",
"vesselinv/fuel-sprockets": "1.0.x-dev"
},
"config": {
"vendor-dir": "vendor"
},
"scripts": {
"post-install-cmd": [
"php oil r install"
]
},
"minimum-stability": "dev"
}
我的问题是,作曲家会自动将链轮包安装到/fuel/packages/sprockets,但我稍微改变了框架结构,所以我的"包"目录在/packages/下。如何更改此作曲家行为?
我只需要它用于"容器/燃料链轮"!
将 config
下的vendor-dir
更改为packages
医生:
供应商目录:默认为供应商。如果需要,可以将依赖项安装到其他目录中。
在 https://stackoverflow.com/a/27735674/2486953 查看我的答案