2015-01-02 3 views
1

저는 zf2를 처음 사용합니다. 내가 알아 차 렸던 한 가지는 판매자 디렉토리의 크기입니다.zf2를 사용하여 벤더를 글로벌 디렉토리로 이동 하시겠습니까?

다른 위치 (예 :/usr/zf2/vender)로 벤더 디렉토리를 이동할 수 있습니까? 이 경우 모든 사용자는 18M 크기의 로컬 복사본을 보관하지 않고 Vender 디렉터리를 사용할 수 있습니다.

감사합니다, 나는

+0

[composer] (https://getcomposer.org)를 사용하고 있습니까? – AlexP

+0

내가 사용하는이 스켈레톤은 작곡가를 사용하고 있습니다. 그게 중요할까요? – ttkrpink

답변

1

당신은 feil과 변화를 ./config/application.config.php 편집 할 수 있습니다/사용자가 선택한 모듈 경로를 추가 ...

// These are various options for the listeners attached to the ModuleManager 
'module_listener_options' => array(
    // This should be an array of paths in which modules reside. 
    // If a string key is provided, the listener will consider that a module 
    // namespace, the value of that key the specific path to that module's 
    // Module class. 
    'module_paths' => array(
     './module', 
     './vendor', 
    ), 
), 

TTK 작곡가가 자신의 구성을 따르고 아마도 몇 가지 부작용을 가질 수 있기 때문에 작곡가가이 곡에 어떻게 반응 할 것인지 확신 할 수 없습니다.

+0

고마워, 내가 살펴 보겠다. – ttkrpink

관련 문제