2017-09-15 7 views
1

I'amは作曲と "ソナタ・プロジェクト/ユーザー・バンドル" を必要としようとしているが、次のエラーを取得する:SonataUserBundle要件の問題

- sonata-project/user-bundle 3.2.4 requires friendsofsymfony/user-bundle ^1.3 -> satisfiable by friendsofsymfony/user-bundle[1.3.x-dev, v1.3.0, v1.3.1, v1.3.2, v1.3.3, v1.3.4, v1.3.5, v1.3.6, v1.3.7] but these conflict with your requirements or minimum-stability. 
- sonata-project/user-bundle 3.2.3 requires friendsofsymfony/user-bundle ^1.3 -> satisfiable by friendsofsymfony/user-bundle[1.3.x-dev, v1.3.0, v1.3.1, v1.3.2, v1.3.3, v1.3.4, v1.3.5, v1.3.6, v1.3.7] but these conflict with your requirements or minimum-stability. 
- sonata-project/user-bundle 3.2.2 requires friendsofsymfony/user-bundle ^1.3 -> satisfiable by friendsofsymfony/user-bundle[1.3.x-dev, v1.3.0, v1.3.1, v1.3.2, v1.3.3, v1.3.4, v1.3.5, v1.3.6, v1.3.7] but these conflict with your requirements or minimum-stability. 
- sonata-project/user-bundle 3.2.1 requires friendsofsymfony/user-bundle ^1.3 -> satisfiable by friendsofsymfony/user-bundle[1.3.x-dev, v1.3.0, v1.3.1, v1.3.2, v1.3.3, v1.3.4, v1.3.5, v1.3.6, v1.3.7] but these conflict with your requirements or minimum-stability. 
- sonata-project/user-bundle 3.2.0 requires friendsofsymfony/user-bundle ^1.3 -> satisfiable by friendsofsymfony/user-bundle[1.3.x-dev, v1.3.0, v1.3.1, v1.3.2, v1.3.3, v1.3.4, v1.3.5, v1.3.6, v1.3.7] but these conflict with your requirements or minimum-stability. 
- Installation request for sonata-project/user-bundle ^3.2 -> satisfiable by sonata-project/user-bundle[3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4]. 

マイcomposer.jsonは、セクションが必要です。

"require": { 
     "php": ">=7.0", 
     "doctrine/doctrine-bundle": "^1.6", 
     "doctrine/doctrine-migrations-bundle": "^1.0", 
     "doctrine/orm": "^2.5", 
     "friendsofsymfony/user-bundle": "~2.0", 
     "gedmo/doctrine-extensions": "^2.4", 
     "incenteev/composer-parameter-handler": "^2.0", 
     "pixassociates/sortable-behavior-bundle": "^1.3", 
     "sensio/distribution-bundle": "^5.0.19", 
     "sensio/framework-extra-bundle": "^3.0.2", 
     "sonata-project/admin-bundle": "^3.23", 
     "sonata-project/doctrine-orm-admin-bundle": "^3.1", 
     "sonata-project/easy-extends-bundle": "^2.2", 
     "sonata-project/formatter-bundle": "^3.2", 
     "stof/doctrine-extensions-bundle": "^1.2", 
     "symfony/monolog-bundle": "^3.1.0", 
     "symfony/polyfill-apcu": "^1.0", 
     "symfony/security-bundle": "^3.3", 
     "symfony/swiftmailer-bundle": "^2.3.10", 
     "symfony/symfony": "3.3.*", 
     "twig/twig": "^1.0||^2.0" 
    }, 

symfony 2.8+が "friendsofsymfony/user-bundle〜2.0"のみでサポートされている場合、 "sonso-project/user-bundle"に "friendsofsymfony/user-bundle^1.3"が必要な理由は分かりません。

"sonata-project/user-bundle"でSymfony 3.3を使用できますか?

答えて

2

することができますが、あなたは(ただし、すでにかなり安定した)者協会のままですSonataUserBundleの4.xの枝を使用する必要があります。packagistの依存関係

"sonata-project/user-bundle": "dev-master",

詳細情報:https://packagist.org/packages/sonata-project/user-bundle

0

をはい、あなたは

"sonata-project/user-bundle": "dev-master", 

使用する必要があります。また、変更する必要が

"config": { 
    "platform": { 
     "php": "7.0" 
    }, 
    "sort-packages": true 
}, 

composer.jsonファイルでこれは正常に動作します