舉例來說,您想使用其他人的捆綁軟件,但想要做一些修改。所以,你在做一些新的分支您的修改,並配置comspoer.json,如:使用沒有Packagist的Composer
{
"require": {
"sylius/assortment-bundle": "dev-soft-deleteable-products-disabled"
},
"repositories": [
{
"type": "package",
"package": {
"name": "sylius/assortment-bundle",
"version": "1.0",
"autoload": { "psr-0": { "Sylius\\Bundle\\AssortmentBundle": "" } },
"target-dir": "Sylius/Bundle/AssortmentBundle",
"source": {
"url": "https://github.com/umpirsky/SyliusAssortmentBundle.git",
"type": "git",
"reference": "soft-deleteable-products-disabled"
}
}
}
]
}
這適用於主分支,而是使用自定義分支它給:The requested package sylius/assortment-bundle dev-soft-deleteable-products-disabled could not be found.
任何想法?
謝謝,這個伎倆。不知道回購可以這樣定義,那太棒了。 – umpirsky
如果您想閱讀更多內容,請在文檔中添加鏈接。 – igorw