release version 2.0.41

This commit is contained in:
Alexander Makarov
2021-03-04 00:51:35 +03:00
parent 1ace064848
commit 4e2045c040
19 changed files with 43 additions and 43 deletions

View File

@ -93,7 +93,7 @@ class BaseYii
*/ */
public static function getVersion() public static function getVersion()
{ {
return '2.0.41-dev'; return '2.0.41';
} }
/** /**

View File

@ -1,32 +1,32 @@
Yii Framework 2 Change Log Yii Framework 2 Change Log
========================== ==========================
2.0.41 under development 2.0.41 March 03, 2021
------------------------ ---------------------
- Enh #18499: When using `yii\db\Query::all()` and `yii\db\Query::$indexBy`, the `yii\db\Query::$indexBy` is auto inserted into `yii\db\Query::$select` - the same as in `yii\db\Query::column()` (OndrejVasicek, samdark, bizley)
- Enh #18483: Add `yii\log\Logger::$dbEventNames` that allows specifying event names used to get statistical results (profiling) of DB queries (atiline)
- Enh #18455: Add ability to use separate attributes for data model and filter model of `yii\grid\GridView` in `yii\grid\DataColumn` (PowerGamer1)
- Enh #18447: Do not use `getLastInsertID()` to get PK from insert query to lower collision probability for concurrent inserts (darkdef)
- Bug #18448: Fix issues in queries and tests for older MSSQL versions (darkdef)
- Enh #18460: `compareValue` in `CompareValidator` can now take a closure returning a value (mmonem)
- Bug #18464: Fix bug with processing fallback messages when translation language is set to `null` (bizley)
- Enh #18457: Add `EVENT_RESET` and `EVENT_FINISH` events to `yii\db\BatchQueryResult` (brandonkelly)
- Bug #18472: Fix initializing `db` component configuration in `yii\data\ActiveDataProvider` (bizley)
- Bug #18479: Fix invalid argument type for `preg_split()` in `\yii\console\Controller` (gazooz)
- Bug #18477: Fix detecting availability of Xdebug's stack trace in `yii\base\ErrorException` (bizley)
- Bug #18480: Transactions are not committed using the dblib driver (bbrunekreeft)
- Enh #18493: Faster request parsing for REST UrlRule with prefix handling (bizley)
- Enh #18487: Allow creating URLs for non-GET-verb rules (bizley)
- Bug #8750: Fix MySQL support when running in `ANSI`/`ANSI_QUOTES` modes (brandonkelly) - Bug #8750: Fix MySQL support when running in `ANSI`/`ANSI_QUOTES` modes (brandonkelly)
- Bug #18505: Fix `yii\helpers\ArrayHelper::getValue()` for ArrayAccess objects with explicitly defined properties (samdark)
- Bug #9718: Fix user staying authorized despite authKey change (kidol, Charlie Jack, Kunal Mhaske, samdark) - Bug #9718: Fix user staying authorized despite authKey change (kidol, Charlie Jack, Kunal Mhaske, samdark)
- Bug #18508: Fix Postgres SQL query for load table indexes with correct column order (insolita) - Bug #18448: Fix issues in queries and tests for older MSSQL versions (darkdef)
- Enh #18518: Add support for ngroks `X-Original-Host` header (brandonkelly)
- Bug #18529: Fix asset files path with `appendTimestamp` option for non-root-relative base URLs (bizley)
- Bug #18450: Allow empty string to be passed as a nullable typed argument to a controller's action (dicrtarasov, bizley) - Bug #18450: Allow empty string to be passed as a nullable typed argument to a controller's action (dicrtarasov, bizley)
- Bug #18464: Fix bug with processing fallback messages when translation language is set to `null` (bizley)
- Bug #18472: Fix initializing `db` component configuration in `yii\data\ActiveDataProvider` (bizley)
- Bug #18477: Fix detecting availability of Xdebug's stack trace in `yii\base\ErrorException` (bizley)
- Bug #18479: Fix invalid argument type for `preg_split()` in `\yii\console\Controller` (gazooz)
- Bug #18480: Transactions are not committed using the dblib driver (bbrunekreeft)
- Bug #18505: Fix `yii\helpers\ArrayHelper::getValue()` for ArrayAccess objects with explicitly defined properties (samdark)
- Bug #18508: Fix Postgres SQL query for load table indexes with correct column order (insolita)
- Bug #18529: Fix asset files path with `appendTimestamp` option for non-root-relative base URLs (bizley)
- Bug #18535: Set Cookie SameSite to Lax by default (samdark) - Bug #18535: Set Cookie SameSite to Lax by default (samdark)
- Bug #18539: Fix "driver does not support quoting" when using the driver pdo_odbc (xpohoc69) - Bug #18539: Fix "driver does not support quoting" when using the driver pdo_odbc (xpohoc69)
- Enh #18447: Do not use `getLastInsertID()` to get PK from insert query to lower collision probability for concurrent inserts (darkdef)
- Enh #18455: Add ability to use separate attributes for data model and filter model of `yii\grid\GridView` in `yii\grid\DataColumn` (PowerGamer1)
- Enh #18457: Add `EVENT_RESET` and `EVENT_FINISH` events to `yii\db\BatchQueryResult` (brandonkelly)
- Enh #18460: `compareValue` in `CompareValidator` can now take a closure returning a value (mmonem)
- Enh #18483: Add `yii\log\Logger::$dbEventNames` that allows specifying event names used to get statistical results (profiling) of DB queries (atiline)
- Enh #18487: Allow creating URLs for non-GET-verb rules (bizley)
- Enh #18493: Faster request parsing for REST UrlRule with prefix handling (bizley)
- Enh #18499: When using `yii\db\Query::all()` and `yii\db\Query::$indexBy`, the `yii\db\Query::$indexBy` is auto inserted into `yii\db\Query::$select` - the same as in `yii\db\Query::column()` (OndrejVasicek, samdark, bizley)
- Enh #18518: Add support for ngroks `X-Original-Host` header (brandonkelly)
2.0.40 December 23, 2020 2.0.40 December 23, 2020

View File

@ -33,7 +33,7 @@ use yii\di\ServiceLocator;
* @property array $modules The modules (indexed by their IDs). * @property array $modules The modules (indexed by their IDs).
* @property-read string $uniqueId The unique ID of the module. This property is read-only. * @property-read string $uniqueId The unique ID of the module. This property is read-only.
* @property string $version The version of this module. Note that the type of this property differs in getter * @property string $version The version of this module. Note that the type of this property differs in getter
* and setter. See [[getVersion()]] and [[setVersion()]] for details. * and setter. See [[getVersion()]] and [[setVersion()]] for details.
* @property string $viewPath The root directory of view files. Defaults to "[[basePath]]/views". * @property string $viewPath The root directory of view files. Defaults to "[[basePath]]/views".
* *
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>

View File

@ -16,9 +16,9 @@ use Yii;
* For more details and usage information on Widget, see the [guide article on widgets](guide:structure-widgets). * For more details and usage information on Widget, see the [guide article on widgets](guide:structure-widgets).
* *
* @property string|null $id ID of the widget. Note that the type of this property differs in getter and * @property string|null $id ID of the widget. Note that the type of this property differs in getter and
* setter. See [[getId()]] and [[setId()]] for details. * setter. See [[getId()]] and [[setId()]] for details.
* @property \yii\web\View $view The view object that can be used to render views or view files. Note that the * @property \yii\web\View $view The view object that can be used to render views or view files. Note that the
* type of this property differs in getter and setter. See [[getView()]] and [[setView()]] for details. * type of this property differs in getter and setter. See [[getView()]] and [[setView()]] for details.
* @property-read string $viewPath The directory containing the view files for this widget. This property is * @property-read string $viewPath The directory containing the view files for this widget. This property is
* read-only. * read-only.
* *

View File

@ -58,7 +58,7 @@ use yii\base\InvalidConfigException;
* @property-read \Memcache|\Memcached $memcache The memcache (or memcached) object used by this cache * @property-read \Memcache|\Memcached $memcache The memcache (or memcached) object used by this cache
* component. This property is read-only. * component. This property is read-only.
* @property MemCacheServer[] $servers List of memcache server configurations. Note that the type of this * @property MemCacheServer[] $servers List of memcache server configurations. Note that the type of this
* property differs in getter and setter. See [[getServers()]] and [[setServers()]] for details. * property differs in getter and setter. See [[getServers()]] and [[setServers()]] for details.
* *
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0

View File

@ -174,6 +174,7 @@ return [
'yii\db\cubrid\Schema' => YII2_PATH . '/db/cubrid/Schema.php', 'yii\db\cubrid\Schema' => YII2_PATH . '/db/cubrid/Schema.php',
'yii\db\cubrid\conditions\LikeConditionBuilder' => YII2_PATH . '/db/cubrid/conditions/LikeConditionBuilder.php', 'yii\db\cubrid\conditions\LikeConditionBuilder' => YII2_PATH . '/db/cubrid/conditions/LikeConditionBuilder.php',
'yii\db\mssql\ColumnSchema' => YII2_PATH . '/db/mssql/ColumnSchema.php', 'yii\db\mssql\ColumnSchema' => YII2_PATH . '/db/mssql/ColumnSchema.php',
'yii\db\mssql\DBLibPDO' => YII2_PATH . '/db/mssql/DBLibPDO.php',
'yii\db\mssql\PDO' => YII2_PATH . '/db/mssql/PDO.php', 'yii\db\mssql\PDO' => YII2_PATH . '/db/mssql/PDO.php',
'yii\db\mssql\QueryBuilder' => YII2_PATH . '/db/mssql/QueryBuilder.php', 'yii\db\mssql\QueryBuilder' => YII2_PATH . '/db/mssql/QueryBuilder.php',
'yii\db\mssql\Schema' => YII2_PATH . '/db/mssql/Schema.php', 'yii\db\mssql\Schema' => YII2_PATH . '/db/mssql/Schema.php',

View File

@ -39,7 +39,7 @@ use yii\web\AssetBundle;
* check [[jsCompressor]] and [[cssCompressor]] for more details. * check [[jsCompressor]] and [[cssCompressor]] for more details.
* *
* @property \yii\web\AssetManager $assetManager Asset manager instance. Note that the type of this property * @property \yii\web\AssetManager $assetManager Asset manager instance. Note that the type of this property
* differs in getter and setter. See [[getAssetManager()]] and [[setAssetManager()]] for details. * differs in getter and setter. See [[getAssetManager()]] and [[setAssetManager()]] for details.
* *
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @author Paul Klimov <klimov.paul@gmail.com> * @author Paul Klimov <klimov.paul@gmail.com>

View File

@ -21,10 +21,10 @@ use yii\base\InvalidArgumentException;
* uniquely identified by the corresponding key value in this array. * uniquely identified by the corresponding key value in this array.
* @property array $models The list of data models in the current page. * @property array $models The list of data models in the current page.
* @property Pagination|false $pagination The pagination object. If this is false, it means the pagination is * @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 * disabled. Note that the type of this property differs in getter and setter. See [[getPagination()]] and
* [[setPagination()]] for details. * [[setPagination()]] for details.
* @property Sort|bool $sort The sorting object. If this is false, it means the sorting is disabled. Note that * @property Sort|bool $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. * the type of this property differs in getter and setter. See [[getSort()]] and [[setSort()]] for details.
* @property int $totalCount Total number of possible data models. * @property int $totalCount Total number of possible data models.
* *
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>

View File

@ -113,13 +113,12 @@ use yii\validators\Validator;
* @see ActiveDataFilter * @see ActiveDataFilter
* *
* @property array $errorMessages Error messages in format `[errorKey => message]`. Note that the type of this * @property array $errorMessages Error messages in format `[errorKey => message]`. Note that the type of this
* property differs in getter and setter. See [[getErrorMessages()]] and [[setErrorMessages()]] for details. * property differs in getter and setter. See [[getErrorMessages()]] and [[setErrorMessages()]] for details.
* @property mixed $filter Raw filter value. * @property mixed $filter Raw filter value.
* @property array $searchAttributeTypes Search attribute type map. Note that the type of this property * @property array $searchAttributeTypes Search attribute type map. Note that the type of this property
* differs in getter and setter. See [[getSearchAttributeTypes()]] and [[setSearchAttributeTypes()]] for * differs in getter and setter. See [[getSearchAttributeTypes()]] and [[setSearchAttributeTypes()]] for details.
* details.
* @property Model $searchModel Model instance. Note that the type of this property differs in getter and * @property Model $searchModel Model instance. Note that the type of this property differs in getter and
* setter. See [[getSearchModel()]] and [[setSearchModel()]] for details. * setter. See [[getSearchModel()]] and [[setSearchModel()]] for details.
* *
* @author Paul Klimov <klimov.paul@gmail.com> * @author Paul Klimov <klimov.paul@gmail.com>
* @since 2.0.13 * @since 2.0.13

View File

@ -70,7 +70,7 @@ use yii\web\Request;
* *
* @property array $attributeOrders Sort directions indexed by attribute names. Sort direction can be either * @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. Note that the type of this property * `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. * differs in getter and setter. See [[getAttributeOrders()]] and [[setAttributeOrders()]] for details.
* @property-read array $orders The columns (keys) and their corresponding sort directions (values). This can * @property-read 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. * be passed to [[\yii\db\Query::orderBy()]] to construct a DB query. This property is read-only.
* *

View File

@ -27,7 +27,7 @@ use yii\helpers\ArrayHelper;
* read-only. * read-only.
* @property bool $isNewRecord Whether the record is new and should be inserted when calling [[save()]]. * @property bool $isNewRecord Whether the record is new and should be inserted when calling [[save()]].
* @property array $oldAttributes The old attribute values (name-value pairs). Note that the type of this * @property array $oldAttributes The old attribute values (name-value pairs). Note that the type of this
* property differs in getter and setter. See [[getOldAttributes()]] and [[setOldAttributes()]] for details. * property differs in getter and setter. See [[getOldAttributes()]] and [[setOldAttributes()]] for details.
* @property-read mixed $oldPrimaryKey The old primary key value. An array (column name => column value) is * @property-read mixed $oldPrimaryKey The old primary key value. An array (column name => column value) is
* returned if the primary key is composite. A string is returned otherwise (null will be returned if the key * returned if the primary key is composite. A string is returned otherwise (null will be returned if the key
* value is null). This property is read-only. * value is null). This property is read-only.

View File

@ -119,7 +119,7 @@ use yii\caching\CacheInterface;
* @property-read PDO $masterPdo The PDO instance for the currently active master connection. This property is * @property-read PDO $masterPdo The PDO instance for the currently active master connection. This property is
* read-only. * read-only.
* @property QueryBuilder $queryBuilder The query builder for the current DB connection. Note that the type of * @property QueryBuilder $queryBuilder The query builder for the current DB connection. Note that the type of
* this property differs in getter and setter. See [[getQueryBuilder()]] and [[setQueryBuilder()]] for details. * this property differs in getter and setter. See [[getQueryBuilder()]] and [[setQueryBuilder()]] for details.
* @property-read Schema $schema The schema information for the database opened by this connection. This * @property-read Schema $schema The schema information for the database opened by this connection. This
* property is read-only. * property is read-only.
* @property-read string $serverVersion Server version as a string. This property is read-only. * @property-read string $serverVersion Server version as a string. This property is read-only.

View File

@ -19,7 +19,7 @@ use yii\base\InvalidConfigException;
* *
* @property MessageFormatter $messageFormatter The message formatter to be used to format message via ICU * @property MessageFormatter $messageFormatter The message formatter to be used to format message via ICU
* message format. Note that the type of this property differs in getter and setter. See * message format. Note that the type of this property differs in getter and setter. See
* [[getMessageFormatter()]] and [[setMessageFormatter()]] for details. * [[getMessageFormatter()]] and [[setMessageFormatter()]] for details.
* *
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0

View File

@ -53,7 +53,7 @@ use yii\base\ErrorHandler;
* @property int $flushInterval How many messages should be logged before they are sent to targets. This * @property int $flushInterval How many messages should be logged before they are sent to targets. This
* method returns the value of [[Logger::flushInterval]]. * method returns the value of [[Logger::flushInterval]].
* @property Logger $logger The logger. If not set, [[\Yii::getLogger()]] will be used. Note that the type of * @property Logger $logger The logger. If not set, [[\Yii::getLogger()]] will be used. Note that the type of
* this property differs in getter and setter. See [[getLogger()]] and [[setLogger()]] for details. * this property differs in getter and setter. See [[getLogger()]] and [[setLogger()]] for details.
* @property int $traceLevel How many application call stacks should be logged together with each message. * @property int $traceLevel How many application call stacks should be logged together with each message.
* This method returns the value of [[Logger::traceLevel]]. Defaults to 0. * This method returns the value of [[Logger::traceLevel]]. Defaults to 0.
* *

View File

@ -27,10 +27,10 @@ use yii\web\Request;
* may specify [[except]] to exclude messages of certain categories. * may specify [[except]] to exclude messages of certain categories.
* *
* @property bool $enabled Indicates whether this log target is enabled. Defaults to true. Note that the type * @property bool $enabled Indicates whether this log target is enabled. Defaults to true. Note that the type
* of this property differs in getter and setter. See [[getEnabled()]] and [[setEnabled()]] for details. * of this property differs in getter and setter. See [[getEnabled()]] and [[setEnabled()]] for details.
* @property int $levels The message levels that this target is interested in. This is a bitmap of level * @property int $levels The message levels that this target is interested in. This is a bitmap of level
* values. Defaults to 0, meaning all available levels. Note that the type of this property differs in getter and * values. Defaults to 0, meaning all available levels. Note that the type of this property differs in getter and
* setter. See [[getLevels()]] and [[setLevels()]] for details. * setter. See [[getLevels()]] and [[setLevels()]] for details.
* *
* For more details and usage information on Target, see the [guide article on logging & targets](guide:runtime-logging). * For more details and usage information on Target, see the [guide article on logging & targets](guide:runtime-logging).
* *

View File

@ -23,7 +23,7 @@ use yii\web\View;
* For more details and usage information on BaseMailer, see the [guide article on mailing](guide:tutorial-mailing). * For more details and usage information on BaseMailer, see the [guide article on mailing](guide:tutorial-mailing).
* *
* @property View $view View instance. Note that the type of this property differs in getter and setter. See * @property View $view View instance. Note that the type of this property differs in getter and setter. See
* [[getView()]] and [[setView()]] for details. * [[getView()]] and [[setView()]] for details.
* @property string $viewPath The directory that contains the view files for composing mail messages Defaults * @property string $viewPath The directory that contains the view files for composing mail messages Defaults
* to '@app/mail'. * to '@app/mail'.
* *

View File

@ -20,7 +20,7 @@ use yii\base\InvalidValueException;
* @property-read Role[] $defaultRoleInstances Default roles. The array is indexed by the role names. This * @property-read Role[] $defaultRoleInstances Default roles. The array is indexed by the role names. This
* property is read-only. * property is read-only.
* @property string[] $defaultRoles Default roles. Note that the type of this property differs in getter and * @property string[] $defaultRoles Default roles. Note that the type of this property differs in getter and
* setter. See [[getDefaultRoles()]] and [[setDefaultRoles()]] for details. * setter. See [[getDefaultRoles()]] and [[setDefaultRoles()]] for details.
* *
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0

View File

@ -34,7 +34,7 @@ use yii\helpers\Url;
* For more details and usage information on AssetManager, see the [guide article on assets](guide:structure-assets). * For more details and usage information on AssetManager, see the [guide article on assets](guide:structure-assets).
* *
* @property AssetConverterInterface $converter The asset converter. Note that the type of this property * @property AssetConverterInterface $converter The asset converter. Note that the type of this property
* differs in getter and setter. See [[getConverter()]] and [[setConverter()]] for details. * differs in getter and setter. See [[getConverter()]] and [[setConverter()]] for details.
* *
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0

View File

@ -53,7 +53,7 @@ use yii\rbac\CheckAccessInterface;
* user. `null` is returned if the user is not logged in (not authenticated). * user. `null` is returned if the user is not logged in (not authenticated).
* @property-read bool $isGuest Whether the current user is a guest. This property is read-only. * @property-read bool $isGuest Whether the current user is a guest. This property is read-only.
* @property string $returnUrl The URL that the user should be redirected to after login. Note that the type * @property string $returnUrl The URL that the user should be redirected to after login. Note that the type
* of this property differs in getter and setter. See [[getReturnUrl()]] and [[setReturnUrl()]] for details. * of this property differs in getter and setter. See [[getReturnUrl()]] and [[setReturnUrl()]] for details.
* *
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0