私は2つのプロジェクトを持っています。 1つは私のapplication
で、2番目のものはexternal module
で、今後のアプリケーションで使いたいものです。作者はパッケージの依存関係をインストールしていません
GitHubで外部モジュールを作成し、アプリケーションのcomposer.json
に含めました。
私external module
はがをクローン化されたが、required dependencies are not installed by composer
/をダウンロード取得します。
は、ここに私のアプリケーションのcomposer.jsonです:
{
"name": "application",
"description": "Skeleton Application for ZF2",
"license": "BSD-3-Clause",
"keywords": [
"framework",
"zf2"
],
"homepage": "http://framework.zend.com/",
"require": {
"php": ">=5.5",
"zendframework/zendframework": "2.*",
"zf-commons/zfc-user": "1.4.4",
"doctrine/doctrine-orm-module": "~0.9.2",
"zf-commons/zfc-user-doctrine-orm": "1.0.*",
"zendframework/zend-developer-tools": "^0.0.2",
"username/GlideUser": "dev-master"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/username/GlideUser.git"
}
]
}
ここでは私の外部モジュールのcomposer.jsonだ:私は作曲はまたは作曲更新プログラムをインストール実行すると
{
"name": "username/glide-user",
"description": "Module For Zend Framework 2",
"type": "library",
"license": "BSD-3-Clause",
"homepage": "https://github.com/username/GlideUser",
"keywords": [
"zf2",
"zfc-user",
"bjyauthorize"
],
"authors": [
{
"name": "Haris Mehmood",
"email": "[email protected]",
"homepage": "abc.com",
"role": "Developer"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=5.3.3",
"bjyoungblood/bjy-authorize": "1.4.0"
},
"autoload": {
"psr-0": {
"GlideUser\\": "src/"
}
}
}
私はbjyauthorizeパッケージがインストールされることを期待しますが、コンポーザーはdependeを無視します他のすべてをインストールしてください。
私はここで間違っていますか?
"username/GlideUser": "dev-master"
:
これは機能しました! Ben Plummerありがとう、またはあなたが壊れたものを修正するので、私はあなたにBen Plumberと呼ぶべきですか?)ありがとう。 –
母、問題ありません!お役に立てて嬉しいです :) –