例如,假设您想使用其他人的捆绑包,但想要进行一些修改。因此,您在一些新分支中进行修改,并配置 comspoer.json,如下所示:
{
"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.
任何想法?