Sam
537317fbb1
Fixes #14126 : Added variadic parameters support to DI container
7 years ago
Robin Kamps
75e8bfdc58
Fixes #14087 : Added `yii\web\View::registerCsrfMetaTags()` method that registers CSRF tags dynamically ensuring that caching doesn't interfere
7 years ago
Vitaly
ab8c54f12a
Fixes #14864 : Ability to use dependencies in constructor of migrations
7 years ago
Ivan Buttinoni
d4780559c9
Fixes #14765 : RBAC: add index on `user_id` column in `auth_assignment` table for performance reasons
7 years ago
SilverFire - Dmitry Naumenko
a86c67ddb3
Reordered CHANGELOG
7 years ago
SilverFire - Dmitry Naumenko
f8a8f1f381
Fixed CHANGELOG
7 years ago
SilverFire - Dmitry Naumenko
1ce796ef0f
Removed ability to define a hostname as trusted because of possible security issues
...
Closes #14691
7 years ago
Carsten Brandt
58d1521280
CHANGELOG for #14620
...
Implemented in
- 3a8feb17a8
- 70ad9f730b
7 years ago
SilverFire - Dmitry Naumenko
34cc2dee8f
Fixes #14294 : Added `InputWidget::renderInputHtml()` to move behavior described in `InputWidget` class docs to the class itself
...
This reverts commit b0162d3a48
.
Closes #14294
7 years ago
Carsten Brandt
36b535c26b
Fixes #13254 : Made `yii\helpers\StringHelper` and `yii\validators\StringValidator` independent of `Yii::$app` instance
7 years ago
Klimov Paul
e69adc19a7
Fixed `yii\widgets\ActiveField::$options` does not support 'class' option in array format
7 years ago
Dmitry Dorogin
9b01ca275f
Fixes #14273 : yii\log\Target::$enabled now supports callable value ( #14539 )
...
* Fixes #14273 : yii\log\Target:: now supports callable value
* added empty line in changelog [skip ci]
* getter and setter
* Update Target.php
7 years ago
Klimov Paul
9e6f9e3b6d
Fixed serialization of `yii\db\Connection` instance closes database connection
7 years ago
Carsten Brandt
711498f93a
Cache user assignments to avoid unnecessary DB queries ( #14696 )
...
* Cache user assignments to avoid unnecessary DB queries
alternative to #9138 and #10981 , only cache on `checkAccess` call which is usually
called on every request. Cache is not necessary in RBAC management.
Similar to #14061 but includes proper cache invalidation and test.
`getAssignments()` always queries the DB. The cache is only applied on
`checkAccess` calls, and invalidated as soon as the RBAC structure is
modified through the manager component (verified by the test case).
Regarding [concerns of memory usage](https://github.com/yiisoft/yii2/pull/14061#issuecomment-297982502 )
if used in batch mode on multiple users, you can call
`invalidateCache()` method if this really causes a problem.
fixes #7743
close #9138
close #14061
close #10981
See also
- https://github.com/yiisoft/yii2/issues/7626#issuecomment-77745166
- https://github.com/yiisoft/yii2/pull/14061#issuecomment-319645488
* improve test naming
* fix tests
* fix assignment cache for non-scalar user-ids
7 years ago
Kolyunya
f866edcfba
Fix console cache controller
...
Fixed a bug in a `yii\console\controllers\CacheController` when caches
defined via a closure were not detected.
fixes #13969
close #14586
7 years ago
Paul Klimov
d68789a195
Fixes #13779 , fixes #5786
...
- #13779 : Fixed `yii\db\ActiveRecord::joinWith()` unable to use relation defined via attached behavior.
- #5786 : Allowed to use custom constructors in ActiveRecord-based classes.
7 years ago
bscheshirwork
8987957f06
Fixes #14697 : Fixed `console\widgets\Table` rendering when there's no data supplied
7 years ago
Francis Lavoie
9588c8f5a4
Fixes #13853 : Added `yii\db\Migration::$compact` as well as `yii\console\controllers\BaseMigrateController::$compact` to allow making the migration console output more compact
7 years ago
Sam
4081a4b203
Fixes #14184 : Module service locator now falls back to its parent module service locator in case component isn't found
7 years ago
Robert Korulczyk
5a8c3d537b
Enable `phpdoc_summary` rule in php-cs-fixer config ( #14675 )
...
* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc".
7 years ago
Herbert Maschke
58792cdac5
Fixes #14664 : Add migrate/fresh command to truncate database and apply migrations again
7 years ago
Alone
4b9d7a6bdd
Fixes #14596 : Fix event call on init in `yii\widgets\BaseListView`
7 years ago
Sam
0017d9c660
Fixes #13780 : Added support for trusted proxies in `yii\web\Request`
7 years ago
SilverFire - Dmitry Naumenko
7c73b0b79d
Enhanced tests, updated CHNAGELOG
7 years ago
SilverFire - Dmitry Naumenko
e4601e5a91
Fixed changelog
7 years ago
bscheshirwork
2b9b0c7166
Fixes #14151 : Added `AttributesBehavior` that assigns values specified to one or multiple attributes of an AR object when certain events happen
7 years ago
Carsten Brandt
cda3089623
Fixed batchInsert casting of double values according to locale ( #14448 )
...
fixes #6526
7 years ago
SilverFire - Dmitry Naumenko
368540f8d0
Added tests
7 years ago
shirase
b6a5697c00
User can login by cookie only once when `autoRenewCookie` is set to false
7 years ago
Alexander Makarov
648971a82b
Fixes #14542 : Ensured only ASCII characters are in CSRF cookie value since binary data causes issues with ModSecurity and some browsers
7 years ago
bscheshirwork
0c0cc1074d
fix current time in formatter ( #14203 )
...
* fix current time in formatter
* expand testAsDatetime
* Update FormatterDateTest.php
* Update CHANGELOG.md
7 years ago
Alexander Makarov
89d8c0f20c
Fixed changelog [skip ci]
7 years ago
Alexander Makarov
ff2bde4939
Added CVE number to escaping issue in changelog [skip ci]
7 years ago
Dmitry Dorogin
f7fb7cdd87
Fixes #14022 : Added posibility to use aliases in yii\web\UrlManager::setBaseUrl() ( #14540 )
7 years ago
Dmitry Dorogin
e18e98ffb3
Fixes #14363 : Added `yii\widgets\LinkPager::$linkContainerOptions` and possibility to override tag in `yii\widgets\LinkPager::$options`
7 years ago
PowerGamer1
459721d471
Fixes #14471 : `ContentNegotiator` will always set one of the configured server response formats even if the client does not accept any of them
7 years ago
Alexey Rogachev
8f2d9baf98
Fixes #14186 , Fixes #14510 : yiiActiveForm regressions
...
- #14186 : Forced validation in `yiiActiveForm` do not trigger `afterValidate` event
- #14510 : The state of a form is always "not validated" when using forced validation in `yiiActiveForm`
7 years ago
Michaël Arnauts
e472b4e29c
Fixes #14525 : Fixed 2.0.12 regression of loading of global fixtures trough `yii fixture/load`
7 years ago
Klimov Paul
2466d397ae
Fixed `yii\validators\ExistValidator` and `yii\validators\UniqueValidator` throw exception in case they are set for `yii\db\ActiveRecord` with `$targetClass` pointing to NOSQL ActiveRecord
7 years ago
Dmitry Dorogin
a731fd4142
Fixes #14318 : Trigger `yiiActiveForm.events.afterValidateAttribute` after updating attribute
7 years ago
Dmitry Dorogin
1ee29c630d
Fixes #14493 : Fixed getting permissions in `yii\rbac\Dbmanger::getPermissionsByUser` by user with id equals 0
7 years ago
Dmitry Dorogin
e2ba94abd6
Fixes #7823 : Added `yii\filters\AjaxFilter` filter
7 years ago
Klimov Paul
578b2caf42
Added `yii\web\MultipartFormDataParser::$force` option allowing to enforce parsing even on 'POST' request
7 years ago
Dmitry Dorogin
8ae2223c6a
Fixes #14370 : Fixed creating built-in validator in model with same function name
7 years ago
Alexander Makarov
acf29e0001
Fixes #14492 : Fixed error handler not escaping error info debug mode
7 years ago
Dmitry Dorogin
21d2d72534
Fixes #14487 : Changed i18n message error to warning
7 years ago
Dmitry Dorogin
6d2e0aff82
Fixes #14406 : Fixed caching rules in `yii\web\UrlManager` with different `ruleConfig` configuration
7 years ago
Carsten Brandt
393fc2744a
Added yii\base\Object for backwards compatibility
...
fixes #7936
close #14478
7 years ago
Alex
59002a9e1e
Fixes #6644 : Added `yii\helpers\ArrayHelper::setValue()`
7 years ago
Carsten Brandt
2f9f15bf92
Fixes #14188 : Add constants and function for sysexits(3) to `ConsoleHelper`
7 years ago