我叉了https://github.com/jasonlewis/basset,現在正在嘗試將我的分叉添加到我的項目中。但是我運行composer update
後,似乎沒有看到我分叉的composer.json
文件,爲什麼?我究竟做錯了什麼?自定義存儲庫不會讀取我的composer.json?
我已經添加了這個repository
後require: {}
:
"repositories": [
{
"type":"package",
"package": {
"name": "marwelln/basset",
"version":"master",
"source": {
"url": "https://github.com/Marwelln/basset.git",
"type": "git",
"reference":"master"
}
}
}
],
我分叉composer.json
看起來像這樣(沒有從原來的改變,除了名稱):
{
"name": "marwelln/basset",
"description": "A better asset management package for Laravel.",
"keywords": ["assets", "basset", "laravel"],
"license": "BSD-2-Clause",
"authors": [
{
"name": "Jason Lewis",
"email": "[email protected]"
}
],
"require": {
"php": ">=5.3.0",
"kriswallsmith/assetic": "1.1.*"
},
"require-dev": {
"mockery/mockery": ">=0.7.2",
"illuminate/config": "4.0.*",
"illuminate/console": "4.0.*",
"illuminate/filesystem": "4.0.*",
"illuminate/log": "4.0.*",
"illuminate/routing": "4.0.*",
"illuminate/support": "4.0.*",
"symfony/process": "2.3.*"
},
"suggest": {
"aws/aws-sdk-php": "Deploy static assets directly to your S3 buckets.",
"rackspace/php-cloudfiles": "Deploy static assets directly to your Cloud Files container."
},
"autoload": {
"psr-0": {
"Basset": "src/"
},
"classmap": [
"tests/Cases/FilterTestCase.php"
],
"files": ["src/helpers.php"]
},
"extra": {
"branch-alias": {
"dev-master": "4.0-dev"
}
},
"minimum-stability": "dev"
}
這樣,Basset
命名空間沒有註冊autoload_namespace.php
也沒有得到"kriswallsmith/assetic": "1.1.*"
,但如果我使用原來的require: { "jasonlewis/basset" : "dev-master"}
它增加它就好了。我錯過了什麼?