Skip to content

Commit ee92cfa

Browse files
committed
release version 2.0.9
1 parent 1423e34 commit ee92cfa

10 files changed

+61
-41
lines changed

Diff for: framework/BaseYii.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class BaseYii
9393
*/
9494
public static function getVersion()
9595
{
96-
return '2.0.9-dev';
96+
return '2.0.9';
9797
}
9898

9999
/**

Diff for: framework/CHANGELOG.md

+38-38
Original file line numberDiff line numberDiff line change
@@ -2,65 +2,65 @@ Yii Framework 2 Change Log
22
==========================
33

44

5-
2.0.9 under development
6-
-----------------------
5+
2.0.9 July 11, 2016
6+
-------------------
77

8-
- Bug #11896: Fix for DROP TRIGGER in migrations from RBAC. (barradas-alberto)
9-
- Enh #11725: Added indexes on message tables (OndrejVasicek)
10-
- Enh #10422: Added `null` method on `yii\db\ColumnSchemaBuilder` to explicitly set column nullability (nevermnd)
11-
- Enh #9574: Implicit run `ColumnSchemaBuilder::null()` when default value is set to `null`. (rob006)
12-
- Enh #8795: Refactored `yii\web\User::loginByCookie()` in order to make it easier to override (maine-mike, silverfire)
13-
- Enh #9948: `yii\rbac\PhpManager` now invalidates script file cache performed by 'OPCache' or 'APC' on file saving (klimov-paul)
14-
- Enh #11195: Added ability to append custom string to schema builder column definition (df2, samdark)
15-
- Enh #11490: Added `yii\data\ArrayDataProvider::$modelClass` property to specify a model used to provide column labels even when data array is empty (PowerGamer1)
16-
- Enh #11591: Added support for wildcards for `only` and `except` at `yii\base\ActionFilter` (klimov-paul)
8+
- Bug #6347: `inverseOf()` not working for dynamic relational queries (laszlovl)
9+
- Bug #8644: Fixed trying to ENABLE/DISABLE TRIGGER ALL on a view in PostgreSQL (ricpelo)
1710
- Bug #9950: Updated `yii\grid\DataColumn::getHeaderCellLabel()` to extract attribute label from the `filterModel` of Grid (silverfire)
11+
- Bug #10613: Fixed PostgreSQL Schema to return correct column names for unique indexes that have mixed case column names (cebe)
12+
- Bug #10681: Fixed active form `beforeValidate` wasn't triggered in some cases (lynicidn)
13+
- Bug #11252: Use strict comparison on ActiveRecord::hasAttribute() to avoid cases where it returns true when a number is passed to it (Faryshta)
14+
- Bug #11322: Fixed incorrect error message in `yii\validators\UniqueValidator` for composite `targetAttribute` (PowerGamer1, silverfire, cebe)
1815
- Bug #11429: Fixed `yii\i18n\PhpMessageSource::loadFallbackMessages()` not to log error when source and language is same, but locales are different (silverfire)
19-
- Enh #11484: Speed up `yii\db\oci\Schema::loadTableSchema()` for Oracle DBMS (SSiwek)
20-
- Enh #11428: Speedup SQL query in `yii\db\oci\Schema::findColumns()` (SSiwek)
21-
- Enh #11414: Files specified as `null` in `yii\web\AssetBundle` won't be registered (Razzwan)
22-
- Enh #11432: Added HTTP status 421 "Misdirected Request" to list of statuses in `yii\web\Response` (dasmfm)
23-
- Enh #11438: Configurable `yii\helpers\Markdown` default flavor (mdmunir)
24-
- Enh #11729: Added `yii\grid\CheckboxColumn::$cssClass` property to specify a class added to checkbox input (thiagotalma)
2516
- Bug #11459: Fixed flash messages not destroyed when `session.auto_start = 1` set in php.ini (cartmanchen)
26-
- Enh #11462: Added support of filtering rules to `yii\log\Target::$logVar` (HaruAtari)
27-
- Enh #11462: Added `\yii\helpers\BaseArrayHelper::filter()` method (HaruAtari)
2817
- Bug #11498: Fixed inability to save serialized object into PostgreSQL binary column (klimov-paul)
2918
- Bug #11507: Fixed `yii\validators\EachValidator::validateAttribute()` does not respect `skipOnEmpty` rule parameter (webdevsega)
3019
- Bug #11523: Fixed `yii\web\User::checkRedirectAcceptable()` to treat acceptable content type `*/*` as `*` (silverfire)
20+
- Bug #11527: Fixed `bigPrimaryKey()` for SQLite (dynasource)
21+
- Bug #11528: Fixed MessageFormatter construction exception caught for PHP 7 compatibility (subdee, cebe)
3122
- Bug #11532: Fixed casting of empty char value to `null` resulting in integrity constraint violation for not null columns (samdark)
23+
- Bug #11536: Fixed regression introduced in 2.0.8, where scalar value was not allowed in QueryBuilder `IN` condition anymore (cebe)
24+
- Bug #11549: Fixed `ArrayHelper::getValue()` to work properly with float keys (zsounder, AnikanovD)
25+
- Bug #11561: Fixed DI container throwing exceptions for optional dependencies (SamMousa)
3226
- Bug #11571: Fixed `yii\db\ColumnSchemaBuilder` to work with custom column types (andrey-mokhov, silverfire)
3327
- Bug #11662: Fixed `schema-oci.sql` for RBAC (jonny7)
34-
- Bug #11527: Fixed `bigPrimaryKey()` for SQLite (dynasource)
28+
- Bug #11672: Fixed `yii\validators\NumberValidator` erroring when value is an object without `__toString()` method (SamMousa)
3529
- Bug #11686: `BaseArrayHelper::isIn()` comparison did not work in strict mode (taobig)
36-
- Enh #11679: Extracted `CheckAccessInterface` from `ManagerInterface` (SamMousa, samdark, mdomba)
30+
- Bug #11693: Handle `QueryBuilder::batchInsert()` calls with no data to insert (rob006)
3731
- Bug #11723: Fixed PHP 7 + XDebug error handling displaying "Expected array for frame 0" (tanakahisateru)
3832
- Bug #11735: Fixed `yii\web\UploadedFile` to return `null` when there's no file uploaded (brummm)
39-
- Bug #11774: Fixed incorrect recusuive symlinks check in FileHelper (AnikanovD)
4033
- Bug #11739: Fixed `ArrayHelper::index()` losing precision for float keys (AnikanovD)
41-
- Bug #11549: Fixed `ArrayHelper::getValue()` to work properly with float keys (zsounder, AnikanovD)
42-
- Bug #8644: Fixed trying to ENABLE/DISABLE TRIGGER ALL on a view in PostgreSQL (ricpelo)
43-
- Bug #11536: Fixed regression introduced in 2.0.8, where scalar value was not allowed in QueryBuilder `IN` condition anymore (cebe)
44-
- Bug #11693: Handle `QueryBuilder::batchInsert()` calls with no data to insert (rob006)
45-
- Bug #11672: Fixed `yii\validators\NumberValidator` erroring when value is an object without `__toString()` method (SamMousa)
46-
- Bug #11561: Fixed DI container throwing exceptions for optional dependencies (SamMousa)
47-
- Enh #11168: `yii\helpers\BaseHtml` now uses abstracted `booleanInput()` and `activeBooleanInput()` methods to render `radio()`, `checkbox()`, `activeRadio()` and `activeCheckbox()` (cesarnicola)
48-
- Enh #11808: `_table` and `_column` suffixes are now required when generating migration (rob006)
34+
- Bug #11774: Fixed incorrect recusuive symlinks check in FileHelper (AnikanovD)
4935
- Bug #11822: Fixed exception on non-string value provided as CSRF token (cebe)
50-
- Enh #11850: Introduced `yii\widgets\Pjax::$submitEvent` to be able to customize event triggering PJAX form submit (Bvanleeuwen)
5136
- Bug #11847: Fixed `yii\widgets\Pjax` to properly respond with partials when custom selector is used for container (pigochu, samdark)
52-
- Bug #10681: Fixed active form `beforeValidate` wasn't triggered in some cases (lynicidn)
53-
- Enh #11857: `yii\filters\AccessRule::$verbs` can now be configured in upper and lowercase (DrDeath72, samdark)
5437
- Bug #11863: Fixed usage of `mb_substr` with PHP < 5.4.8 where length of NULL was treated the same as 0 (samdark)
5538
- Bug #11865: Fixed setting `selected` for dropdown list using options (samdark)
56-
- Bug #11528: Fixed MessageFormatter construction exception caught for PHP 7 compatibility (subdee, cebe)
5739
- Bug #11878: Fixed i18n gettext fallback language message loading (stevekr)
40+
- Bug #11896: Fix for DROP TRIGGER in migrations from RBAC. (barradas-alberto)
41+
- Enh #8795: Refactored `yii\web\User::loginByCookie()` in order to make it easier to override (maine-mike, silverfire)
42+
- Enh #9574: Implicit run `ColumnSchemaBuilder::null()` when default value is set to `null`. (rob006)
43+
- Enh #9948: `yii\rbac\PhpManager` now invalidates script file cache performed by 'OPCache' or 'APC' on file saving (klimov-paul)
44+
- Enh #10422: Added `null` method on `yii\db\ColumnSchemaBuilder` to explicitly set column nullability (nevermnd)
45+
- Enh #11168: `yii\helpers\BaseHtml` now uses abstracted `booleanInput()` and `activeBooleanInput()` methods to render `radio()`, `checkbox()`, `activeRadio()` and `activeCheckbox()` (cesarnicola)
46+
- Enh #11195: Added ability to append custom string to schema builder column definition (df2, samdark)
5847
- Enh #11212: Added headers to PO file in `yii\i18n\GettextPoFile::save()` (stevekr)
59-
- Bug #6347: `inverseOf()` not working for dynamic relational queries (laszlovl)
60-
- Bug #10613: Fixed PostgreSQL Schema to return correct column names for unique indexes that have mixed case column names (cebe)
61-
- Bug #11322: Fixed incorrect error message in `yii\validators\UniqueValidator` for composite `targetAttribute` (PowerGamer1, silverfire, cebe)
48+
- Enh #11414: Files specified as `null` in `yii\web\AssetBundle` won't be registered (Razzwan)
49+
- Enh #11428: Speedup SQL query in `yii\db\oci\Schema::findColumns()` (SSiwek)
50+
- Enh #11432: Added HTTP status 421 "Misdirected Request" to list of statuses in `yii\web\Response` (dasmfm)
51+
- Enh #11438: Configurable `yii\helpers\Markdown` default flavor (mdmunir)
52+
- Enh #11462: Added support of filtering rules to `yii\log\Target::$logVar` (HaruAtari)
53+
- Enh #11462: Added `\yii\helpers\BaseArrayHelper::filter()` method (HaruAtari)
54+
- Enh #11484: Speed up `yii\db\oci\Schema::loadTableSchema()` for Oracle DBMS (SSiwek)
55+
- Enh #11490: Added `yii\data\ArrayDataProvider::$modelClass` property to specify a model used to provide column labels even when data array is empty (PowerGamer1)
56+
- Enh #11591: Added support for wildcards for `only` and `except` at `yii\base\ActionFilter` (klimov-paul)
57+
- Enh #11679: Extracted `CheckAccessInterface` from `ManagerInterface` (SamMousa, samdark, mdomba)
58+
- Enh #11725: Added indexes on message tables (OndrejVasicek)
59+
- Enh #11729: Added `yii\grid\CheckboxColumn::$cssClass` property to specify a class added to checkbox input (thiagotalma)
60+
- Enh #11808: `_table` and `_column` suffixes are now required when generating migration (rob006)
61+
- Enh #11850: Introduced `yii\widgets\Pjax::$submitEvent` to be able to customize event triggering PJAX form submit (Bvanleeuwen)
62+
- Enh #11857: `yii\filters\AccessRule::$verbs` can now be configured in upper and lowercase (DrDeath72, samdark)
6263
- Chg #11364: Updated jQuery dependency to include versions `1.12.*` (cebe)
63-
- Bug #11252: Use strict comparison on ActiveRecord::hasAttribute() to avoid cases where it returns true when a number is passed to it (Faryshta)
6464
- Chg #11683: Fixed fixture command to work with short syntax. `yii fixture "*, -User"` should be used instead of `yii fixture "*" -User` (Faryshta, samdark)
6565

6666

Diff for: framework/classes.php

+2
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
'yii\db\sqlite\Schema' => YII2_PATH . '/db/sqlite/Schema.php',
135135
'yii\di\Container' => YII2_PATH . '/di/Container.php',
136136
'yii\di\Instance' => YII2_PATH . '/di/Instance.php',
137+
'yii\di\NotInstantiableException' => YII2_PATH . '/di/NotInstantiableException.php',
137138
'yii\di\ServiceLocator' => YII2_PATH . '/di/ServiceLocator.php',
138139
'yii\filters\AccessControl' => YII2_PATH . '/filters/AccessControl.php',
139140
'yii\filters\AccessRule' => YII2_PATH . '/filters/AccessRule.php',
@@ -211,6 +212,7 @@
211212
'yii\mutex\PgsqlMutex' => YII2_PATH . '/mutex/PgsqlMutex.php',
212213
'yii\rbac\Assignment' => YII2_PATH . '/rbac/Assignment.php',
213214
'yii\rbac\BaseManager' => YII2_PATH . '/rbac/BaseManager.php',
215+
'yii\rbac\CheckAccessInterface' => YII2_PATH . '/rbac/CheckAccessInterface.php',
214216
'yii\rbac\DbManager' => YII2_PATH . '/rbac/DbManager.php',
215217
'yii\rbac\Item' => YII2_PATH . '/rbac/Item.php',
216218
'yii\rbac\ManagerInterface' => YII2_PATH . '/rbac/ManagerInterface.php',

Diff for: framework/console/Application.php

+4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@
5050
* yii help
5151
* ```
5252
*
53+
* @property ErrorHandler $errorHandler The error handler application component. This property is read-only.
54+
* @property Request $request The request component. This property is read-only.
55+
* @property Response $response The response component. This property is read-only.
56+
*
5357
* @author Qiang Xue <[email protected]>
5458
* @since 2.0
5559
*/

Diff for: framework/db/ColumnSchemaBuilder.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ class ColumnSchemaBuilder extends Object
7777
*/
7878
protected $isFirst;
7979

80+
8081
/**
8182
* @var array mapping of abstract column types (keys) to type categories (values).
8283
* @since 2.0.8
@@ -301,7 +302,7 @@ protected function buildLengthString()
301302

302303
/**
303304
* Builds the not null constraint for the column.
304-
* @return string returns 'NOT NULL' if [[isNotNull]] is true,
305+
* @return string returns 'NOT NULL' if [[isNotNull]] is true,
305306
* 'NULL' if [[isNotNull]] is false or an empty string otherwise.
306307
*/
307308
protected function buildNotNullString()

Diff for: framework/db/pgsql/Schema.php

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* Schema is the class for retrieving metadata from a PostgreSQL database
1616
* (version 9.x and above).
1717
*
18+
* @property string[] $viewNames All view names in the database. This property is read-only.
19+
*
1820
* @author Gevik Babakhani <[email protected]>
1921
* @since 2.0
2022
*/
@@ -107,6 +109,7 @@ class Schema extends \yii\db\Schema
107109
'jsonb' => self::TYPE_STRING,
108110
'xml' => self::TYPE_STRING,
109111
];
112+
110113
/**
111114
* @var array list of ALL view names in the database
112115
*/

Diff for: framework/grid/CheckboxColumn.php

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ class CheckboxColumn extends Column
7373
*/
7474
public $cssClass;
7575

76+
7677
/**
7778
* @inheritdoc
7879
* @throws \yii\base\InvalidConfigException if [[name]] is not set.

Diff for: framework/rbac/CheckAccessInterface.php

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<?php
2+
/**
3+
* @link http://www.yiiframework.com/
4+
* @copyright Copyright (c) 2008 Yii Software LLC
5+
* @license http://www.yiiframework.com/license/
6+
*/
7+
28
namespace yii\rbac;
39

410
/**

Diff for: framework/validators/UniqueValidator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function validateAttribute($model, $attribute)
158158
* Builds and adds [[comboNotUnique]] error message to the specified model attribute.
159159
* @param \yii\base\Model $model the data model.
160160
* @param string $attribute the name of the attribute.
161-
*/
161+
*/
162162
private function addComboNotUniqueError($model, $attribute)
163163
{
164164
$attributeCombo = [];

Diff for: framework/web/Application.php

+3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
/**
1414
* Application is the base class for all web application classes.
1515
*
16+
* @property ErrorHandler $errorHandler The error handler application component. This property is read-only.
1617
* @property string $homeUrl The homepage URL.
18+
* @property Request $request The request component. This property is read-only.
19+
* @property Response $response The response component. This property is read-only.
1720
* @property Session $session The session component. This property is read-only.
1821
* @property User $user The user component. This property is read-only.
1922
*

0 commit comments

Comments
 (0)