2014-06-23 11 views
2

Doctrine 2.4에는 현재 사용중인 Symfony 2.3 프로젝트에서 사용하고 싶은 몇 가지 흥미로운 새로운 기능이 있습니다.Symfony 및 composer.json과 함께 Doctrine 2.4 사용

symfony에서 doctrine 2.4를 사용하기위한 composer.json 구성이 있습니까? 유효한 종속성 목록을 찾을 수 없습니다. 내 composer.json에서 doctrine/orm의 2.4.3 버전을 지정하면 doctrine/doctrine-bundle이 교리 프로그램 설치> 2.3을 허용하지 않기 때문에 작성자 업데이트 오류가 발생합니다.

Doctrine 2.4는 Symfony2 문서에 언급되어 있지만 올바른 composer.json 목록을 찾지 못했습니다.

도움을 주시면 감사하겠습니다.

현재 composer.json

{ 
    "name": "symfony/framework-standard-edition", 
    "description": "The \"Symfony Standard Edition\" distribution", 
    "autoload": { 
     "psr-0": { "": "src/" } 
    }, 
    "repositories": [ 
     { 
      "type": "vcs", 
      "url": "https://github.com/Fraktl/EscapeWSSEAuthenticationBundle.git" 
     } 
    ], 
    "require": { 
     "php": ">=5.3.3", 
     "symfony/symfony": "2.3.*", 
     "doctrine/orm": ">=2.2.3,<2.4-dev", 
     "doctrine/doctrine-bundle": "1.2.*", 
     "twig/extensions": "1.0.*", 
     "symfony/assetic-bundle": "2.3.*", 
     "symfony/swiftmailer-bundle": "2.3.*", 
     "symfony/monolog-bundle": "2.3.*", 
     "sensio/distribution-bundle": "2.3.*", 
     "sensio/framework-extra-bundle": "2.3.*", 
     "sensio/generator-bundle": "2.3.*", 
     "incenteev/composer-parameter-handler": "~2.0", 
     "stof/doctrine-extensions-bundle": "dev-master", 
     "friendsofsymfony/jsrouting-bundle": "~1.1", 
     "friendsofsymfony/rest-bundle": "dev-master", 
     "sprain/validator-bundle": "dev-master", 
     "willdurand/geocoder-bundle": "@stable", 
     "friendsofsymfony/user-bundle": "[email protected]", 
     "escapestudios/wsse-authentication-bundle": "2.3.x-dev", 
     "jms/serializer-bundle": "dev-master", 
     "doctrine/doctrine-fixtures-bundle": "2.2.*", 
     "luxifer/doctrine-functions": "dev-master" 

    }, 
    "scripts": { 
     "post-install-cmd": [ 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" 
     ], 
     "post-update-cmd": [ 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile" 
     ] 
    }, 
    "minimum-stability": "dev", 
    "extra": { 
     "symfony-app-dir": "app", 
     "symfony-web-dir": "web" 
    } 
} 
+0

는 @Nextar 어쩌면 갱신 composer.json – Nextar

+0

있는지 보여주십시오 없습니다 때문에 심포니 2.4. *가 도움이됩니다. ''doctrine/orm ''을 시도해 볼 수도 있습니다 : "2.4. *", ' – Simon

+0

을 추가 우리에게 composer.json – Javad

답변

3

composer.json :

"require": { 
    "php": ">=5.3.3", 
    "symfony/symfony": "2.3.*", 
    "doctrine/orm": "2.4.*", 
    "doctrine/doctrine-bundle": "~1.2", 
    .... 

다음 업데이트하여 dependencys

$ composer update doctrine\orm 

그러나! 심포니 마스터가 동일한 버전을 사용하고 있기 때문에이 지원되는 경우 메신저 2.3 (심포니 2.5 composer.json는)

"require": { 
    "doctrine/orm": "~2.2,>=2.2.3", 
    "doctrine/doctrine-bundle": "~1.2", 
+0

symfony 2.4로 업그레이드하는 것이 트릭입니다. 감사합니다 @nextar – Simon

+0

symfony를 업그레이드하지 않고 doctrine/orm 패키지를 버전 2.4. * – Nextar

+0

에 추가하여 doctrine/orm 2.4를 추가 할 수 있습니다. * "symfony/symfony": "~ 2.4" 그렇지 않으면 doctrine/doctrine-bundle에서 작성자 업데이트가 실패합니다. – Simon