mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
release version 2.0.10
This commit is contained in:
@ -93,7 +93,7 @@ class BaseYii
|
||||
*/
|
||||
public static function getVersion()
|
||||
{
|
||||
return '2.0.10-dev';
|
||||
return '2.0.10';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1,18 +1,18 @@
|
||||
Yii Framework 2 Change Log
|
||||
==========================
|
||||
|
||||
2.0.10 under development
|
||||
------------------------
|
||||
2.0.10 October 20, 2016
|
||||
-----------------------
|
||||
|
||||
- Bug #7670: Added `yii\web\UrlNormalizer` for normalizing requests with and without trailing slashes (rob006, cronfy, klimov-paul)
|
||||
- Bug #10358: Fixed race condition in `yii.js` AJAX prefilter (silverfire)
|
||||
- Bug #7670: Added `UrlNormalizer` for normalizing requests with and without trailing slashes (rob006, cronfy, klimov-paul)
|
||||
- Bug #9027: Fixed descendant class of `yii\web\UploadedFile` returns parent instances in case invoked after it (andrewnester)
|
||||
- Bug #9101: Fixed `yii\web\View` to respect `yii\web\AssetManager::appendTimstamp` property (githubjeka, silverfire)
|
||||
- Bug #9277: Fixed `yii\console\controllers\AssetController` looses custom options of 'target' bundles (petrabarus, klimov-paul)
|
||||
- Bug #9561: Fixed `canGetProperty()` and `canSetProperty()` returns `false` for `yii\db\BaseActiveRecord` attributes (klimov-paul, Ni-san)
|
||||
- Bug #10567: Fixed `yii\console\controllers\AssetController` looses bundle override configuration, which makes it external one (klimov-paul)
|
||||
- Bug #10358: Fixed race condition in `yii.js` AJAX prefilter (silverfire)
|
||||
- Bug #10563: Fixed forming `Content-Disposition` header for file downloads (samdark)
|
||||
- Bug #10567: Fixed `yii\console\controllers\AssetController` looses bundle override configuration, which makes it external one (klimov-paul)
|
||||
- Bug #10587: Latest used controller instance was not available in `Response::EVENT_AFTER_SEND` handler (samdark, andrewnester)
|
||||
- Bug #10681: Reverted fix of beforeValidate event calling in `yii.activeForm.js` (silverfire)
|
||||
- Bug #11347: Fixed `yii\widgets\Pjax::registerClientScript()` to pass custom `container` to the PJAX JS plugin (silverfire)
|
||||
@ -23,6 +23,7 @@ Yii Framework 2 Change Log
|
||||
- Bug #11726: `yii\web\DbSession` was echoing database errors in production mode (samdark, pastuhov, deadkrolik)
|
||||
- Bug #11907: Fixed `yii\helpers\Console::getScreenSize()` on Windows was giving out width and height swapped (Spell6inder, samdark, cebe)
|
||||
- Bug #11912: Fixed PostgreSQL Schema to support negative default values for integer/float/decimal columns (nsknewbie)
|
||||
- Bug #11921: Fixed URL decoding in `yii.getQueryParams()` to handle `+` (plus) character properly (silverfire)
|
||||
- Bug #11922: Fixed `yii\log\FileTarget` does not apply `fileMode` for rotated via copy files (klimov-paul)
|
||||
- Bug #11947: Fixed `gridData` initialization in `yii.gridView.js` (pavlm)
|
||||
- Bug #11949: Fixed `yii\widgets\ActiveField::end()` generates close tag when it's `option['tag']` is `null` (egorio)
|
||||
@ -51,7 +52,6 @@ Yii Framework 2 Change Log
|
||||
- Bug #12605: Make 'safe' validator work on write-only properties (arthibald, CeBe)
|
||||
- Bug #12629: Fixed `yii\widgets\ActiveField::widget()` to call `adjustLabelFor()` for `InputWidget` descendants (coderlex)
|
||||
- Bug #12649: Fixed consistency of `indexBy` handling for `yii\db\Query::column()` (silverfire)
|
||||
- Bug #11921: Fixed URL decoding in `yii.getQueryParams()` to handle `+` (plus) character properly (silverfire)
|
||||
- Enh #384: Added ability to run migration from several locations via `yii\console\controllers\BaseMigrateController::$migrationNamespaces` (klimov-paul)
|
||||
- Enh #6996: Added `yii\web\MultipartFormDataParser`, which allows proper processing of 'multipart/form-data' encoded non POST requests (klimov-paul)
|
||||
- Enh #8719: Add support for HTML5 attributes on submitbutton (formaction/formmethod...) for ActiveForm (VirtualRJ)
|
||||
@ -78,17 +78,17 @@ Yii Framework 2 Change Log
|
||||
- Enh #12082: Used `jQuery.on(` instead of event method to ensure forwards compatibility (newerton)
|
||||
- Enh #12099: `yii\filters\HttpCache` no longer returns 304 HTTP code when callbacks return null (sergeymakinen)
|
||||
- Enh #12193: Added the ability to suppress the generation of duplicate error messages in `yii\helpers\Html::errorSummary()`. Added the ability to display error messages beyond the first error for each model attribute (PowerGamer1)
|
||||
- Enh #12198: Added `time` and `datetime` validator short names (nkovacs)
|
||||
- Enh #12230: Allows BaseHtml::activeListInput to override the field value (RangelReale)
|
||||
- Enh #12296: Added value validation to `yii\log\Target::setLevels()` (Mak-Di)
|
||||
- Enh #12376: Added parameter to `yii.activeForm.js` `validate()` method to be able to force validation (DrDeath72)
|
||||
- Enh #12382: Changed `yii\widgets\MaskedInput` to use `jQuery` instead of `$` to prevent conflicts (samdark)
|
||||
- Enh #12440: Added `yii\base\Event::offAll()` method allowing clear all registered class-level event handlers (klimov-paul)
|
||||
- Enh #12499: When AJAX validation in enabled, `yii.activeForm.js` will run it forcefully on form submit to display all possible errors (silverfire)
|
||||
- Enh #12580: Make `yii.js` comply with strict and non-strict javascript mode to allow concatenation with external code (mikehaertl)
|
||||
- Enh #12664: Added support for wildcards for `optional` at `yii\filters\auth\AuthMethod` (mg-code)
|
||||
- Enh #12744: Added `afterInit` event to `yii.activeForm.js` (werew01f)
|
||||
- Enh #12499: When AJAX validation in enabled, `yii.activeForm.js` will run it forcefully on form submit to display all possible errors (silverfire)
|
||||
- Enh: Method `yii\console\controllers\AssetController::getAssetManager()` automatically enables `yii\web\AssetManager::forceCopy` in case it is not explicitly specified (pana1990, klimov-paul)
|
||||
- Enh #12198: Added `time` and `datetime` validator short names (nkovacs)
|
||||
|
||||
|
||||
2.0.9 July 11, 2016
|
||||
|
@ -51,9 +51,11 @@ return [
|
||||
'yii\base\View' => YII2_PATH . '/base/View.php',
|
||||
'yii\base\ViewContextInterface' => YII2_PATH . '/base/ViewContextInterface.php',
|
||||
'yii\base\ViewEvent' => YII2_PATH . '/base/ViewEvent.php',
|
||||
'yii\base\ViewNotFoundException' => YII2_PATH . '/base/ViewNotFoundException.php',
|
||||
'yii\base\ViewRenderer' => YII2_PATH . '/base/ViewRenderer.php',
|
||||
'yii\base\Widget' => YII2_PATH . '/base/Widget.php',
|
||||
'yii\behaviors\AttributeBehavior' => YII2_PATH . '/behaviors/AttributeBehavior.php',
|
||||
'yii\behaviors\AttributeTypecastBehavior' => YII2_PATH . '/behaviors/AttributeTypecastBehavior.php',
|
||||
'yii\behaviors\BlameableBehavior' => YII2_PATH . '/behaviors/BlameableBehavior.php',
|
||||
'yii\behaviors\SluggableBehavior' => YII2_PATH . '/behaviors/SluggableBehavior.php',
|
||||
'yii\behaviors\TimestampBehavior' => YII2_PATH . '/behaviors/TimestampBehavior.php',
|
||||
@ -179,7 +181,9 @@ return [
|
||||
'yii\helpers\Inflector' => YII2_PATH . '/helpers/Inflector.php',
|
||||
'yii\helpers\Json' => YII2_PATH . '/helpers/Json.php',
|
||||
'yii\helpers\Markdown' => YII2_PATH . '/helpers/Markdown.php',
|
||||
'yii\helpers\ReplaceArrayValue' => YII2_PATH . '/helpers/ReplaceArrayValue.php',
|
||||
'yii\helpers\StringHelper' => YII2_PATH . '/helpers/StringHelper.php',
|
||||
'yii\helpers\UnsetArrayValue' => YII2_PATH . '/helpers/UnsetArrayValue.php',
|
||||
'yii\helpers\Url' => YII2_PATH . '/helpers/Url.php',
|
||||
'yii\helpers\VarDumper' => YII2_PATH . '/helpers/VarDumper.php',
|
||||
'yii\i18n\DbMessageSource' => YII2_PATH . '/i18n/DbMessageSource.php',
|
||||
@ -209,6 +213,7 @@ return [
|
||||
'yii\mutex\FileMutex' => YII2_PATH . '/mutex/FileMutex.php',
|
||||
'yii\mutex\Mutex' => YII2_PATH . '/mutex/Mutex.php',
|
||||
'yii\mutex\MysqlMutex' => YII2_PATH . '/mutex/MysqlMutex.php',
|
||||
'yii\mutex\OracleMutex' => YII2_PATH . '/mutex/OracleMutex.php',
|
||||
'yii\mutex\PgsqlMutex' => YII2_PATH . '/mutex/PgsqlMutex.php',
|
||||
'yii\rbac\Assignment' => YII2_PATH . '/rbac/Assignment.php',
|
||||
'yii\rbac\BaseManager' => YII2_PATH . '/rbac/BaseManager.php',
|
||||
@ -291,6 +296,7 @@ return [
|
||||
'yii\web\Linkable' => YII2_PATH . '/web/Linkable.php',
|
||||
'yii\web\MethodNotAllowedHttpException' => YII2_PATH . '/web/MethodNotAllowedHttpException.php',
|
||||
'yii\web\MultiFieldSession' => YII2_PATH . '/web/MultiFieldSession.php',
|
||||
'yii\web\MultipartFormDataParser' => YII2_PATH . '/web/MultipartFormDataParser.php',
|
||||
'yii\web\NotAcceptableHttpException' => YII2_PATH . '/web/NotAcceptableHttpException.php',
|
||||
'yii\web\NotFoundHttpException' => YII2_PATH . '/web/NotFoundHttpException.php',
|
||||
'yii\web\Request' => YII2_PATH . '/web/Request.php',
|
||||
@ -306,6 +312,8 @@ return [
|
||||
'yii\web\UnsupportedMediaTypeHttpException' => YII2_PATH . '/web/UnsupportedMediaTypeHttpException.php',
|
||||
'yii\web\UploadedFile' => YII2_PATH . '/web/UploadedFile.php',
|
||||
'yii\web\UrlManager' => YII2_PATH . '/web/UrlManager.php',
|
||||
'yii\web\UrlNormalizer' => YII2_PATH . '/web/UrlNormalizer.php',
|
||||
'yii\web\UrlNormalizerRedirectException' => YII2_PATH . '/web/UrlNormalizerRedirectException.php',
|
||||
'yii\web\UrlRule' => YII2_PATH . '/web/UrlRule.php',
|
||||
'yii\web\UrlRuleInterface' => YII2_PATH . '/web/UrlRuleInterface.php',
|
||||
'yii\web\User' => YII2_PATH . '/web/User.php',
|
||||
|
@ -56,6 +56,7 @@ class Controller extends \yii\base\Controller
|
||||
* @since 2.0.10
|
||||
*/
|
||||
public $help;
|
||||
|
||||
/**
|
||||
* @var array the options passed during execution.
|
||||
*/
|
||||
@ -254,9 +255,9 @@ class Controller extends \yii\base\Controller
|
||||
* - validator: a callable function to validate input. The function must accept two parameters:
|
||||
* - $input: the user input to validate
|
||||
* - $error: the error value passed by reference if validation failed.
|
||||
*
|
||||
*
|
||||
* An example of how to use the prompt method with a validator function.
|
||||
*
|
||||
*
|
||||
* ```php
|
||||
* $code = $this->prompt('Enter 4-Chars-Pin', ['required' => true, 'validator' => function($input, &$error) {
|
||||
* if (strlen($input) !== 4) {
|
||||
@ -266,7 +267,7 @@ class Controller extends \yii\base\Controller
|
||||
* return true;
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
*
|
||||
* @return string the user input
|
||||
*/
|
||||
public function prompt($text, $options = [])
|
||||
|
@ -43,7 +43,7 @@ abstract class BaseMigrateController extends Controller
|
||||
* @var array list of namespaces containing the migration classes.
|
||||
*
|
||||
* Migration namespaces should be resolvable as a path alias if prefixed with `@`, e.g. if you specify
|
||||
* the namespace `app\migrations`, the code `Yii::getAlias('@app/migrations')` should be able to return
|
||||
* the namespace `app\migrations`, the code `Yii::getAlias('@app/migrations')` should be able to return
|
||||
* the file path to the directory this namespace refers to.
|
||||
*
|
||||
* For example:
|
||||
|
@ -18,8 +18,8 @@ use yii\base\InvalidParamException;
|
||||
* @property array $keys The list of key values corresponding to [[models]]. Each data model in [[models]] is
|
||||
* uniquely identified by the corresponding key value in this array.
|
||||
* @property array $models The list of data models in the current page.
|
||||
* @property Pagination|boolean $pagination The pagination object. If this is false, it means the pagination
|
||||
* is disabled. Note that the type of this property differs in getter and setter. See [[getPagination()]] and
|
||||
* @property Pagination|false $pagination The pagination object. If this is false, it means the pagination is
|
||||
* disabled. Note that the type of this property differs in getter and setter. See [[getPagination()]] and
|
||||
* [[setPagination()]] for details.
|
||||
* @property Sort|boolean $sort The sorting object. If this is false, it means the sorting is disabled. Note
|
||||
* that the type of this property differs in getter and setter. See [[getSort()]] and [[setSort()]] for details.
|
||||
|
@ -67,7 +67,8 @@ use yii\web\Request;
|
||||
* that can lead to pages with the data sorted by the corresponding attributes.
|
||||
*
|
||||
* @property array $attributeOrders Sort directions indexed by attribute names. Sort direction can be either
|
||||
* `SORT_ASC` for ascending order or `SORT_DESC` for descending order.
|
||||
* `SORT_ASC` for ascending order or `SORT_DESC` for descending order. Note that the type of this property
|
||||
* differs in getter and setter. See [[getAttributeOrders()]] and [[setAttributeOrders()]] for details.
|
||||
* @property array $orders The columns (keys) and their corresponding sort directions (values). This can be
|
||||
* passed to [[\yii\db\Query::orderBy()]] to construct a DB query. This property is read-only.
|
||||
*
|
||||
|
@ -768,7 +768,7 @@ class BaseArrayHelper
|
||||
* Filters array according to rules specified.
|
||||
*
|
||||
* For example:
|
||||
*
|
||||
*
|
||||
* ```php
|
||||
* $array = [
|
||||
* 'A' => [1, 2],
|
||||
|
@ -1155,8 +1155,8 @@ class BaseHtml
|
||||
* - footer: string, the footer HTML for the error summary. Defaults to empty string.
|
||||
* - encode: boolean, if set to false then the error messages won't be encoded. Defaults to `true`.
|
||||
* - showAllErrors: boolean, if set to true every error message for each attribute will be shown otherwise
|
||||
* only the first error message for each attribute will be shown. Defaults to `false`.
|
||||
* Option is available since 2.0.10.
|
||||
* only the first error message for each attribute will be shown. Defaults to `false`.
|
||||
* Option is available since 2.0.10.
|
||||
*
|
||||
* The rest of the options will be rendered as the attributes of the container tag.
|
||||
*
|
||||
|
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @link http://www.yiiframework.com/
|
||||
* @copyright Copyright (c) 2008 Yii Software LLC
|
||||
@ -62,6 +61,7 @@ class ReplaceArrayValue
|
||||
*/
|
||||
public $value;
|
||||
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
* @param mixed $value value used as replacement.
|
||||
|
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @link http://www.yiiframework.com/
|
||||
* @copyright Copyright (c) 2008 Yii Software LLC
|
||||
|
@ -57,8 +57,8 @@ use yii\helpers\StringHelper;
|
||||
* Thus functions like `is_uploaded_file()` and `move_uploaded_file()` will fail on them. This also
|
||||
* means [[UploadedFile::saveAs()]] will fail as well.
|
||||
*
|
||||
* @property integer $uploadFileMaxSize upload file max size in bytes.
|
||||
* @property integer $uploadFileMaxCount maximum upload files count.
|
||||
* @property integer $uploadFileMaxCount Maximum upload files count.
|
||||
* @property integer $uploadFileMaxSize Upload file max size in bytes.
|
||||
*
|
||||
* @author Paul Klimov <klimov.paul@gmail.com>
|
||||
* @since 2.0.10
|
||||
|
@ -41,8 +41,10 @@ use yii\helpers\StringHelper;
|
||||
* if no such header is sent. This property is read-only.
|
||||
* @property array $eTags The entity tags. This property is read-only.
|
||||
* @property HeaderCollection $headers The header collection. This property is read-only.
|
||||
* @property string $hostInfo Schema and hostname part (with port number if needed) of the request URL (e.g.
|
||||
* `http://www.yiiframework.com`), null if can't be obtained from `$_SERVER` and wasn't set.
|
||||
* @property string|null $hostInfo Schema and hostname part (with port number if needed) of the request URL
|
||||
* (e.g. `http://www.yiiframework.com`), null if can't be obtained from `$_SERVER` and wasn't set.
|
||||
* @property string|null $hostName Hostname part of the request URL (e.g. `www.yiiframework.com`). This
|
||||
* property is read-only.
|
||||
* @property boolean $isAjax Whether this is an AJAX (XMLHttpRequest) request. This property is read-only.
|
||||
* @property boolean $isDelete Whether this is a DELETE request. This property is read-only.
|
||||
* @property boolean $isFlash Whether this is an Adobe Flash or Adobe Flex request. This property is
|
||||
|
@ -51,9 +51,9 @@ class UrlNormalizer extends Object
|
||||
* Available options are:
|
||||
* - `null` - no special action will be performed
|
||||
* - `301` - the request should be redirected to the normalized URL using
|
||||
* permanent redirection
|
||||
* permanent redirection
|
||||
* - `302` - the request should be redirected to the normalized URL using
|
||||
* temporary redirection
|
||||
* temporary redirection
|
||||
* - `404` - [[NotFoundHttpException]] will be thrown
|
||||
* - `callable` - custom user callback, for example:
|
||||
*
|
||||
|
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @link http://www.yiiframework.com/
|
||||
* @copyright Copyright (c) 2008 Yii Software LLC
|
||||
@ -32,6 +31,7 @@ class UrlNormalizerRedirectException extends \yii\base\Exception
|
||||
*/
|
||||
public $statusCode;
|
||||
|
||||
|
||||
/**
|
||||
* @param array|string $url the parameter to be used to generate a valid URL for redirection.
|
||||
* This will be used as first parameter for [[\yii\helpers\Url::to()]]
|
||||
|
@ -46,7 +46,7 @@ use yii\rbac\CheckAccessInterface;
|
||||
* ]
|
||||
* ```
|
||||
*
|
||||
* @property string|integer $id The unique identifier for the user. If null, it means the user is a guest.
|
||||
* @property string|integer $id The unique identifier for the user. If `null`, it means the user is a guest.
|
||||
* This property is read-only.
|
||||
* @property IdentityInterface|null $identity The identity object associated with the currently logged-in
|
||||
* user. `null` is returned if the user is not logged in (not authenticated).
|
||||
|
@ -151,7 +151,6 @@ class ActiveField extends Component
|
||||
* `$options` parameters of the `input*` methods.
|
||||
*/
|
||||
private $_inputId;
|
||||
|
||||
/**
|
||||
* @var bool if "for" field label attribute should be skipped.
|
||||
*/
|
||||
|
@ -16,7 +16,7 @@ use yii\di\Instance;
|
||||
/**
|
||||
* FragmentCache is used by [[\yii\base\View]] to provide caching of page fragments.
|
||||
*
|
||||
* @property string|boolean $cachedContent The cached content. False is returned if valid content is not found
|
||||
* @property string|false $cachedContent The cached content. False is returned if valid content is not found
|
||||
* in the cache. This property is read-only.
|
||||
*
|
||||
* @author Qiang Xue <qiang.xue@gmail.com>
|
||||
|
Reference in New Issue
Block a user