我有一个使用 socalnick / scn-social-auth-doctrine-orm 的项目。该模块还取决于:
进一步取决于
所以 ORM 取决于 - > Social-Auth ,这取决于 - > 混合
为了使我的应用程序正常工作,我需要对这两个模块(1)和(2)进行一些更改。我将这些模块分叉到我的git帐户,并根据我的要求进行了更改。在我的应用程序composer.json中,我只是将 socalnick / scn-social-auth-doctrine-orm 作为要求。
如何管理composer.json,以便 socalnick / scn-social-auth-doctrine-orm 获取我的分叉模块而不是默认模块。
答案 0 :(得分:0)
您应该在xy <- read.table(text = "Island,Individual,all1,all2
Santiago,CVW3,01,01
Santiago,CVW8,01,02
Santiago,CVW9,03,03
Santiago,CVW10,01,01
Santiago,CVW12,03,03
Santiago,CVW19,01,01
Santiago,CVW25,01,04
Santiago,CVW39,04,04
Santiago,CVW40,01,01
Santiago,CVW41,01,01
Fogo,CVW64,04,04
Fogo,CVW67,01,01
Fogo,CVW70,02,04
Fogo,CVW74,03,05
Fogo,CVW80,01,02
Fogo,CVW99,01,04
Fogo,CVW101,02,02
Fogo,CVW103,01,02
Fogo,CVW104,01,04
Fogo,CVW111,02,04
SaoNicolau,CVW81,01,01
SaoNicolau,CVW87,01,01
SaoNicolau,CVW92,01,01
SaoNicolau,CVW124,01,01
SaoNicolau,CVW125,01,01
SaoNicolau,CVW133,01,01
SaoNicolau,CVW136,01,01", header = TRUE, sep = ",",
colClasses = c("factor", "factor", "character", "character"),
stringsAsFactors = FALSE)
by(xy, xy$Island, FUN = function(x) {
table(c(x$all1, x$all2))/length(c(x$all1, x$all2))
})
xy$Island: Fogo
01 02 03 04 05
0.30 0.30 0.05 0.30 0.05
------------------------------------------------------------------------------------------------------
xy$Island: Santiago
01 02 03 04
0.60 0.05 0.20 0.15
------------------------------------------------------------------------------------------------------
xy$Island: SaoNicolau
01
1
。
composer.json
在您的fork中,您可以添加与主包的要求匹配的标记,或使用具有版本号别名的分支:
{
"require": {
"socalnick/scn-social-auth-doctrine-orm": "*",
"socialnick/scn-social-auth": "*",
"hybridauth/hybridauth": "*"
},
"repositories": [
{
"type": "git",
"url": "https://github.com/USER/scn-social-auth.git"
},
{
"type": "git",
"url": "https://github.com/USER/hybridauth.git"
}
]
}