diff --git a/.gitignore b/.gitignore index 9291d3e..d8b54c0 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,4 @@ nbproject Thumbs.db # composer vendor dir -vendor \ No newline at end of file +/framework/vendor \ No newline at end of file diff --git a/composer.json b/composer.json index b797b2f..c6b616a 100644 --- a/composer.json +++ b/composer.json @@ -63,6 +63,9 @@ "irc": "irc://irc.freenode.net/yii", "source": "https://github.com/yiisoft/yii2" }, + "config": { + "vendor-dir": "framework/vendor" + }, "bin": [ "framework/yiic" ], diff --git a/composer.lock b/composer.lock index c269cf3..1cae3d4 100644 --- a/composer.lock +++ b/composer.lock @@ -3,7 +3,7 @@ "This file locks the dependencies of your project to a known state", "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file" ], - "hash": "8036953eff9eafbdbd4c431929a1d223", + "hash": "7d46ce9c4d8d5f4ecae1611ea8f0b49c", "packages": [ { "name": "ezyang/htmlpurifier", diff --git a/framework/helpers/base/Markdown.php b/framework/helpers/base/Markdown.php index 562403f..58987d3 100644 --- a/framework/helpers/base/Markdown.php +++ b/framework/helpers/base/Markdown.php @@ -7,7 +7,7 @@ namespace yii\helpers\base; -\Yii::setAlias('@Michelf', \Yii::getAlias('@yii').'/../vendor/michelf/php-markdown/Michelf'); +\Yii::setAlias('@Michelf', \Yii::getAlias('@yii/vendor/michelf/php-markdown/Michelf')); use Michelf\MarkdownExtra; /** diff --git a/framework/helpers/base/Purifier.php b/framework/helpers/base/Purifier.php index cc4ab12..1342374 100644 --- a/framework/helpers/base/Purifier.php +++ b/framework/helpers/base/Purifier.php @@ -7,7 +7,7 @@ namespace yii\helpers\base; if (!class_exists('HTMLPurifier_Bootstrap', false)) { - require_once(\Yii::getAlias('@yii').'/../vendor/ezyang/htmlpurifier/library'.DIRECTORY_SEPARATOR.'HTMLPurifier.auto.php'); + require_once(\Yii::getAlias('@yii/vendor/ezyang/htmlpurifier/library/HTMLPurifier.auto.php')); } /**