上にsymfony/symfonyのを必要としません私はこれを入力して1ですべてのバンドル1をインストールする必要がありません。Composerは、私は次の行と作曲を通してsymfonyの最後のバージョンがインストールされているsymfonyの4
composer require symfony/symfony
しかし、問題は、私は次のエラーで終わるということです。
composer require symfony/symfony
Using version ^4.0 for symfony/symfony
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- symfony/symfony v4.0.0 conflicts with __root__[No version set (parsed as 1.0.0)].
- symfony/symfony v4.0.1 conflicts with __root__[No version set (parsed as 1.0.0)].
- symfony/symfony v4.0.2 conflicts with __root__[No version set (parsed as 1.0.0)].
- Installation request for __root__ No version set (parsed as 1.0.0) -> satisfiable by __root__[No version set (parsed as 1.0.0)].
- Installation request for symfony/symfony ^4.0 -> satisfiable by symfony/symfony[v4.0.0, v4.0.1, v4.0.2].
Installation failed, reverting ./composer.json to its original content.
私はバージョン4.0.2 を指定すると、私はあまり2件の誤差がありますが、問題は同じまま:
composer require symfony/symfony v4.0.2
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for __root__ No version set (parsed as 1.0.0) -> satisfiable by __root__[No version set (parsed as 1.0.0)].
- symfony/symfony v4.0.2 conflicts with __root__[No version set (parsed as 1.0.0)].
- Installation request for symfony/symfony v4.0.2 -> satisfiable by symfony/symfony[v4.0.2].
Installation failed, reverting ./composer.json to its original content.
マイcomposer.json:
{
"type": "project",
"license": "proprietary",
"require": {
"php": "^7.1.3",
"ext-iconv": "*",
"sensiolabs/security-checker": "^4.1",
"symfony/console": "^4.0",
"symfony/flex": "^1.0",
"symfony/framework-bundle": "^4.0",
"symfony/lts": "^[email protected]",
"symfony/yaml": "^4.0"
},
"require-dev": {
"symfony/dotenv": "^4.0",
"symfony/thanks": "^1.0"
},
"config": {
"preferred-install": {
"*": "dist"
},
"sort-packages": true
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/"
}
},
"replace": {
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php71": "*",
"symfony/polyfill-php70": "*",
"symfony/polyfill-php56": "*"
},
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install --symlink --relative %PUBLIC_DIR%": "symfony-cmd",
"security-checker security:check": "script"
},
"post-install-cmd": [
"@auto-scripts"
],
"post-update-cmd": [
"@auto-scripts"
]
},
"conflict": {
"symfony/symfony": "*"
},
"extra": {
"symfony": {
"id": "0133333333333333337ed17ed",
"allow-contrib": false
}
}
}
私は非常によ混乱して、私はsymfonyのドキュメントでこれに関する多くの情報を見つけることができません。そして、私は作曲家と何か手掛かりを得ていませんか?
'symfony/symfony'を含む' composer.json'の 'conflict'セクションはどうですか?それは明示的にコンポーザーにあなたのパッケージと 'symfony/symfony'を一緒にインストールしないように指示します。 – ccKep
@ccKep本当に私は何かを誤解しなければなりません。 –
どのステップがあなたに言ったか、 'conflict'セクションを表示させましたか?リンクした部分は削除しないでください。削除して '' symfony/symfony''が必要なことがあるかどうか確認してください。 – ccKep