2013-02-08 5 views
1

작곡가를 사용하여 ZF2에서 bjy-authorize, zfcUser 및 zfc-user-doctrine-orm을 사용하려고합니다. 하지만 composer.phar 업데이트를 호출 할 때 항상 오류가 발생합니다. 다음과 같이composer.json for ZF2

composer.json 보인다 :

{ 
"name": "zendframework/skeleton-application", 
"description": "Skeleton Application for ZF2", 
"license": "BSD-3-Clause", 
"keywords": [ 
    "framework", 
    "zf2" 
], 
"homepage": "http://framework.zend.com/", 
"minimum-stability": "alpha", 
"require": { 
    "php": ">=5.3.3", 
    "zendframework/zendframework": "2.*", 
    "doctrine/doctrine-orm-module": "dev-master", 
    "bjyoungblood/bjy-authorize": "dev-master", 
    "zf-commons/zfc-base": "dev-master", 
    "zf-commons/zfc-user": "dev-master", 
    "zf-commons/zfc-user-doctrine-orm": "dev-master" 
} 
} 

나는 내가 오류를 얻을 (ZF-공유지 "로 시작하는) 마지막 3 선없이 그것을 시도하지만, ZFC-사용자 교리 모듈은 내가 composer.json 파일에서 변경해야 할 일을하지 설치.

Your requirements could not be resolved to an installable set of packages. 
    Problem 1 
- Conclusion: don't install zf-commons/zfc-base 0.0.1 
- Conclusion: remove bjyoungblood/bjy-authorize dev-master|install zf-commons/zfc-base 0.0.1 
- Conclusion: don't install bjyoungblood/bjy-authorize dev-master|remove zf-commons/zfc-base dev-master|install zf-commons/zfc-base 0.0.1 
- Installation request for bjyoungblood/bjy-authorize dev-master -> satisfiable by bjyoungblood/bjy-authorize dev-master. 
- bjyoungblood/bjy-authorize dev-master requires zf-commons/zfc-user dev-master -> satisfiable by zf-commons/zfc-user dev-master, zf-commons/zfc-user dev-master. 
- zf-commons/zfc-user dev-master requires zf-commons/zfc-base 0.* -> satisfiable by zf-commons/zfc-base 0.0.0, zf-commons/zfc-base 0.0.1, zf-commons/zfc-base 0.1.0. 
- zf-commons/zfc-user dev-master requires zf-commons/zfc-base 0.* -> satisfiable by zf-commons/zfc-base 0.0.0, zf-commons/zfc-base 0.0.1, zf-commons/zfc-base 0.1.0. 
- Can only install one of: zf-commons/zfc-base dev-master, zf-commons/zfc-base 0.0.0. 
- Can only install one of: zf-commons/zfc-base dev-master, zf-commons/zfc-base 0.1.0. 
- Installation request for zf-commons/zfc-base dev-master -> satisfiable by zf-commons/zfc-base dev-master 

?

보다도, 아이스 맨

답변

0

당신은 해결할 수 있습니다 composer.json 다음과 같이 : 당신이 무슨 일을하는지 모르는 경우 dev-master를 사용

{ 
    "require": { 
     "php": ">=5.3.3", 
     "zendframework/zendframework": "2.*", 
     "doctrine/doctrine-orm-module": "~0.7", 
     "bjyoungblood/bjy-authorize": "~1.1", 
     "zf-commons/zfc-user": "~0.1", 
     "zf-commons/zfc-user-doctrine-orm": "~0.1" 
    } 
} 

마십시오.

+0

나는 또한이 솔루션을 시도하고 그것도 노력하고 있습니다. 지금 zfcUser 모듈이 포함되어 있기 때문에 이것을 사용하고 있습니다. ** 감사합니다 ** – Iceman

+0

@Ocramius는 이러한 권장 설정입니까? 'Zfcuser'에서 등록 페이지를로드하는 중 오류가 발생했습니다. 이러한 요구 사항에 링크되어 있는지 확실하지 않습니다. – Programmer

1

Zf-Commons가 릴리스에 태그를다는 것이 문제입니다. 내가 너라면 zfc-user, zfc-base 및 doctrine-orm-module을 제거하겠다.

bjy-authorize의 버전을 dev-master에서 1로 변경하고 * 및 zfc-user-doctrine-orm을 0으로 변경하십시오. *. 그런 다음 작성자는 거기에서 종속성을 처리해야합니다.

+0

해당 모듈을 제거하는 것이 올바르지 않습니다. 그 이유는 응용 프로그램이 어떻게 든 그들을 참조하기 때문입니다. – Ocramius

+0

이 답변으로 도움이되었습니다. ** 고마워 ** – Iceman