added path when script is run from yii2-dev/extensions

This commit is contained in:
Tobias Munk
2014-03-21 00:19:17 +01:00
parent ba5bfc09cb
commit 534eb8b421

View File

@@ -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) {