Commit 534eb8b4 by Tobias Munk

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

parent ba5bfc09
...@@ -13,6 +13,7 @@ defined('YII_DEBUG') or define('YII_DEBUG', false); ...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment