2016-11-09 63 views
1

我有一個使用finder組件的Symfony 3.1項目。我現在試圖用kunstmaan/adminlist-bundle構建一個CRUD界面。使用Symfony 2.8或3.1安裝kunstmaan/adminlist-bundle

我努力解決作曲家的要求。

從開始安裝kunstmaan捆綁包看來它們只與Symfony 2.7或2.8兼容?

我似乎一直在這個圈子裏一段時間。解決這些問題的好策略是什麼?

composer.json:

{ 
    "name": "jochen/processor", 
    "license": "proprietary", 
    "type": "project", 
    "minimum-stability": "dev", 
    "autoload": { 
     "psr-4": { 
      "": "src/" 
     }, 
     "classmap": [ 
      "app/AppKernel.php", 
      "app/AppCache.php" 
     ] 
    }, 
    "autoload-dev": { 
     "psr-4": { 
      "Tests\\": "tests/" 
     } 
    }, 
    "require": { 
     "php": ">=7.0.0", 
     "symfony/symfony": "2.7.*", 
     "doctrine/orm": "^2.5", 
     "doctrine/doctrine-bundle": "^1.6", 
     "doctrine/doctrine-cache-bundle": "^1.2", 
     "symfony/swiftmailer-bundle": "^2.3", 
     "symfony/monolog-bundle": "^2.7", 
     "symfony/polyfill-apcu": "^1.0", 
     "symfony/finder": "@dev", 
     "sensio/distribution-bundle": "^5.0", 
     "sensio/framework-extra-bundle": "^3.0.2", 
     "incenteev/composer-parameter-handler": "^2.0", 
     "kunstmaan/admin-bundle": "@dev", 
     "kunstmaan/adminlist-bundle": "@dev", 
     "kunstmaan/generator-bundle": "^3.5" 
    }, 
    "require-dev": { 
     "sensio/generator-bundle": "^3.0", 
     "symfony/phpunit-bridge": "^3.0" 
    }, 
    "scripts": { 
     "symfony-scripts": [ 
      "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget" 
     ], 
     "post-install-cmd": [ 
      "@symfony-scripts" 
     ], 
     "post-update-cmd": [ 
      "@symfony-scripts" 
     ] 
    }, 
    "extra": { 
     "symfony-app-dir": "app", 
     "symfony-bin-dir": "bin", 
     "symfony-var-dir": "var", 
     "symfony-web-dir": "web", 
     "symfony-tests-dir": "tests", 
     "symfony-assets-install": "relative", 
     "incenteev-parameters": { 
      "file": "app/config/parameters.yml" 
     } 
    } 
} 

作曲家輸出

composer update 
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 
    - kunstmaan/generator-bundle 3.5.x-dev requires symfony/symfony ~2.8 -> satisfiable by symfony/symfony[2.8.x-dev]. 
    - kunstmaan/generator-bundle 3.5.0 requires symfony/symfony ~2.8 -> satisfiable by symfony/symfony[2.8.x-dev]. 
    - kunstmaan/generator-bundle 3.5.1 requires symfony/symfony ~2.8 -> satisfiable by symfony/symfony[2.8.x-dev]. 
    - kunstmaan/generator-bundle 3.5.x-dev requires symfony/symfony ~2.8 -> satisfiable by symfony/symfony[2.8.x-dev]. 
    - Conclusion: don't install symfony/symfony 2.8.x-dev 
    - Installation request for kunstmaan/generator-bundle ^3.5 -> satisfiable by kunstmaan/generator-bundle[3.5.0, 3.5.1, 3.5.x-dev]. 

回答