I have several restful apis build using yii2 framework. I would like to use one vendor directory stored in a different address
it
I have an application hosted in www.example1.comand another hosted in , www.example2.comand I would like the provider files to be in www.example3.comso that in both examples1 and example2 I would need to load a resful folder without suppliers directories
After some searching in the yii2 extended folder, I found these lines in index.php
require(__DIR__ . '/_protected/vendor/autoload.php');
require(__DIR__ . '/_protected/vendor/yiisoft/yii2/Yii.php');
Ive tried to work by doing
require(__DIR__ . 'http:://example1.com/pathto/_protected/vendor/autoload.php');
But above fails, how best can I achieve this
source
share