mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 22:09:48 +08:00
added path when script is run from yii2-dev/extensions
This commit is contained in:
@@ -13,6 +13,7 @@ defined('YII_DEBUG') or define('YII_DEBUG', false);
|
|||||||
$composerAutoload = [
|
$composerAutoload = [
|
||||||
__DIR__ . '/vendor/autoload.php', // standalone with "composer install" run
|
__DIR__ . '/vendor/autoload.php', // standalone with "composer install" run
|
||||||
__DIR__ . '/../../autoload.php', // script is installed as a composer binary
|
__DIR__ . '/../../autoload.php', // script is installed as a composer binary
|
||||||
|
__DIR__ . '/../../../../autoload.php', // script is run from yii2-dev/extensions
|
||||||
];
|
];
|
||||||
$vendorPath = null;
|
$vendorPath = null;
|
||||||
foreach ($composerAutoload as $autoload) {
|
foreach ($composerAutoload as $autoload) {
|
||||||
|
|||||||
Reference in New Issue
Block a user