Yii2 project structure

Hi,

I would love to share Yii2 framework core files and basic set of extensions between multiple applications (projects) but on the other hand I would like to allow individual applications to keep their own "private" extension sets.

That implies two "vendor" folders for each application one "global" at the framework level and one private, for individual application. Using virtual hosts that would translate into the following directory structure:

VHOSTS_HOME–

…|

…INCLUDES --> whatever non PSR include files

…|

…VENDOR --> PSR autoloded inclding Yii2 frameword

…|

…APPS–

…|

…APP1–

…|…|

…|…CGI-BIN

…|…|

…|…PROTECTED–

…|…|…|

…|…WEB…VENDOR

…|

…APP2–

…|…|

…|…CGI-BIN

…|…|

…|…PROTECTED–

…|…|…|

…|…WEB…VENDOR

…|

(I hope the ideas is catchable…)

So - the question is - how to "instruct" the application there are two separate "Vendor" folders where autoloder should look for extensions: global and private?

Any idea? - Thanks ahead!