Call bower in separate vendor directory

Hello I want to ask something

I create the multiple advance yii2 template, after being separated the directory like

-htdocs

—advancedyii2application1

—advancedyii2application2

------backend

------common

------console

------environtments

------frontend

------and other

—yii2

------vendor

------composer.json

------and other

I setting the vendor in common\config\main.php and change the vendor to directory like this :


'vendorPath' => dirname(dirname(__DIR__)) . '/../yii2/vendor',

but for (example) FontAwesomeAsset the vendor when I call


public $sourcePath = '@vendor/fortawesome/font-awesome';

Give the "The file or directory to be published does not exist: C:\xampp\htdocs\advancedyii2application2\vendor…" Error

I try


public $sourcePath = '@vendor/../yii2/fortawesome/font-awesome';

or


public $sourcePath = '../yii2/@vendor/../yii2/fortawesome/font-awesome';

still same

How to configure "@vendor" alias, to get the separated @vendor or @bower like structure like I write above

Sorry for my stupid question and description