0
我有一些作曲家依賴的問題。我的基本項目有以下JSON文件:從git repositroy安裝依賴項目
"require": {
"klabs/side-menu-widget": "dev-master"
},
"repositories": [
{
"type": "git",
"url": "[email protected]:klabsers/side-menu-widget.git"
}
]
而且klabs /側面菜單,窗口小部件有以下composer.json文件:
{
"name": "klabs/side-menu-widget",
"description": "Responsive side menu widget for Yii 2 framework",
"type": "yii2-extension",
"keywords": [
"yii",
"extension",
"widget",
"yii2",
"yii 2",
"menu",
"bootstrap"
],
"homepage": "https://bitbucket.org/klabsers/side-menu-widget/overview",
"license": "BSD-3-Clause",
"authors": [
{
"name": "Urmat Zhenaliev",
"email": "[email protected]",
"homepage": "http://prosoft.kg",
"role": "Developer"
}
],
"support": {
"issues": "https://bitbucket.org/klabsers/side-menu-widget/issues",
"source": "https://bitbucket.org/klabsers/side-menu-widget"
},
"require": {
"yiisoft/yii2": "*",
"klabs/font-awesome-asset": "dev-master"
},
"autoload": {
"psr-4": {
"klabs\\widgets\\menu\\side\\": ""
}
},
"repositories": [
{
"type": "git",
"url": "[email protected]:klabsers/font-awesome-asset.git"
}
]
}
以一個不
"require": {
"yiisoft/yii2": "*",
"klabs/font-awesome-asset": "dev-master"
},
這個項目(klabs/side-menu-widget)需要另一個名爲的git倉庫klabs/font-awesome-asset,以下composer.json文件:
{
"name": "klabs/font-awesome-asset",
"description": "Font Awesome css framework asset manager for Yii 2 framework",
"type": "yii2-extension",
"keywords": [
"yii",
"extension",
"widget",
"asset",
"assets",
"yii2",
"yii 2",
"menu",
"font",
"font-awesome",
"awesome"
],
"homepage": "https://bitbucket.org/klabsers/font-awesome-asset/overview",
"license": "BSD-3-Clause",
"authors": [
{
"name": "Urmat Zhenaliev",
"email": "sonkei[email protected]",
"homepage": "http://prosoft.kg",
"role": "Developer"
}
],
"support": {
"issues": "https://bitbucket.org/klabsers/font-awesome-asset/issues",
"source": "https://bitbucket.org/klabsers/font-awesome-asset"
},
"require": {
"yiisoft/yii2": "*"
},
"autoload": {
"psr-4": {
"klabs\\assets\\font_awesome\\": ""
}
}
}
但是,當我嘗試安裝klabs /側面菜單的小部件我得到的錯誤:
我的quiestion是 - 是否可用自動加載git respository依賴項,而不包括它在我的基本項目,如果是的我在做什麼錯了?