2017-05-19 13 views
2

나는 Symfony Demo Application을 실행 중이며 지금은 install API Platform as a standalone bundle입니다.API 플랫폼 v1.1.1 및 Symfony 3.2.8 작곡가 충돌

필자는 최신 작곡가와 함께 PHP 7.0.10을 사용하고 있지만 이전 테스트에서는 PHP 5.6.20을 사용하고있었습니다.

내가 종속성으로 API 플랫폼 코어를 추가하려고하면, 나는 다음과 같은 오류 메시지가 얻을 : 당신의 composer.json 파일에서

$ composer require api-platform/core 
Using version ^1.1 for api-platform/core 
./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 symfony/symfony (locked at v3.2.8, required as ^3 
.2) -> satisfiable by symfony/symfony[v3.2.8]. 
    - api-platform/core v1.1.0 requires phpdocumentor/reflection ^1.0.7 -> satis 
fiable by phpdocumentor/reflection[1.0.7]. 
    - api-platform/core v1.1.1 requires phpdocumentor/reflection ^1.0.7 -> satis 
fiable by phpdocumentor/reflection[1.0.7]. 
    - Conclusion: don't install phpdocumentor/reflection 1.0.7 
    - Installation request for api-platform/core ^1.1 -> satisfiable by api-plat 
form/core[v1.1.0, v1.1.1]. 


Installation failed, reverting ./composer.json to its original content. 

답변

3

을 :

찾기 : 교체 "symfony/symfony": "3.2.*",

:

`"symfony/symfony": "3.3.*",` 

... 또는

`"symfony/symfony": "^3.2.*",` 

당신은 아마 (할) 필요가 있습니다 실행 composer update 첫째, THEN 그래서 당신은 모든 종속성이 제대로로드해야하지만 필수적이지의 composer require api-platform/core와 API 플랫폼 패키지를 추가 할 수 있습니다.