From f253817b92b3ba77efbb6043d7d74fd9fcbf3828 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Tue, 16 Sep 2014 20:09:35 -0400 Subject: [PATCH] Fixes #4454: Improved asset bundle managed and used composer-asset-plugin to manage the dependencies on 3rd-party JS libraries --- framework/CHANGELOG.md | 1 + framework/UPGRADE.md | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 66fe83f37f..ba8ba724c1 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -264,6 +264,7 @@ Yii Framework 2 Change Log - Chg #4318: `yii\helpers\Html::ul()` and `ol()` will return an empty list tag if an empty item array is given (qiangxue) - Chg #4331: `yii\helpers\Url` now uses `UrlManager` to determine base URL when generating URLs (qiangxue) - Chg #4424: Added `inline` and `mimeType` options to all file downloading methods provided in `yii\web\Response` (qiangxue) +- Chg #4454: Improved asset bundle managed and used composer-asset-plugin to manage the dependencies on 3rd-party JS libraries (qiangxue) - Chg #4501: Renamed the constant `YII_PATH` to `YII2_PATH` (qiangxue) - Chg #4586: Signed bigint and unsigned int will be converted into integers when they are loaded from DB by AR (qiangxue) - Chg #4591: `yii\helpers\Url::to()` will no longer prefix relative URLs with the base URL (qiangxue) diff --git a/framework/UPGRADE.md b/framework/UPGRADE.md index a5b27618f6..ce9beb498a 100644 --- a/framework/UPGRADE.md +++ b/framework/UPGRADE.md @@ -12,6 +12,13 @@ for both A and B. Upgrade from Yii 2.0 Beta ------------------------- +* If you are using Composer to install Yii, you should run the following command first (once for all) to install + the composer-asset-plugin: + + ``` + php composer.phar global require "fxp/composer-asset-plugin:~1.0" + ``` + * If you used `clearAll()` or `clearAllAssignments()` of `yii\rbac\DbManager`, you should replace them with `removeAll()` and `removeAllAssignments()` respectively.