2016-11-09 2 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]. 

답변

1

당신이 볼 수 있듯이 kunstmaan/발전기 번들은 당신이 당신의 composer.json에있는 "^ 3.5"(심포니 2.8을 필요로 in https://packagist.org/packages/kunstmaan/generator-bundle#3.5.1). composer.json에는 symfony 2.7. *이 있습니다. 2.8. *로 변경하십시오.

+0

나는 2.8 *을 시도했다고 생각했지만 * ~ 2.8에서는 작동한다. – jdog