Alexander Makarov
376006a2d5
Data filter enhancements and docs
...
- Added docs.
- Moved to "data" namespace.
- Moved messages to "yii" category.
- Added Russian messages translation.
7 years ago
Dmitry Dorogin
614fb52c45
Fixes #14543 : Throw exception when trying to create migration longer than 255 symbols
7 years ago
Dmitry Naumenko
7e7faeebd1
Fixed excess escaping in Command::batchInsert() ( #13236 )
7 years ago
Dmitry Naumenko
64d8af61a6
Fixes for PHP 7.2 compatibility ( #14959 )
7 years ago
Pavel Chaplygin
d49ec7b8be
Fixes #14633 : Add miliseconds to log time in `\yii\log\Target`
7 years ago
Klimov Paul
560d5b53e7
unit test fix
7 years ago
Paul Klimov
744b87fabc
Fixes #4479 : Implemented REST filters
7 years ago
Herbert Maschke
c9de616b4c
Fixes #13403 : Added 'permissions' additionally to 'roles' in `yii\filters\AccessRule` in order to be able to specify these separately
7 years ago
SilverFire - Dmitry Naumenko
ea2c475ea7
Moved `HTTP_AUTHORIZATION` header check to `\yii\web\Request`, added docs
...
Closes #13564
7 years ago
Robert Korulczyk
c78201899b
Fixes #13720 : Improve `yii\helpers\FormatConverter::convertDatePhpToIcu()` to handle escaped chars correctly
7 years ago
SilverFire - Dmitry Naumenko
0b2e79eac5
Fixed BasicHttpAuth to respect HTTP_AUTHORIZATION header
...
Closes #13564
7 years ago
Robert Korulczyk
f5c98f9664
Fixed tests for HHVM ( #14941 )
7 years ago
Marko Kruljac
22d453faac
Fixes #14134 : Fixed multiple `validateAttribute()` calls when `scenarios()` returns duplicate attributes
7 years ago
Robert Korulczyk
59b635c2a6
Fixes #14921 : Fixed bug with replacing numeric keys in `yii\helpers\Url::current()`
7 years ago
Alexander Makarov
f5591bb70e
Closes #13792 : added test verifying unused messages are not removed
7 years ago
Alexander Makarov
6bde69aa96
Fixes #14016 : Fixed empty messages marked as unused in PHP and PO sources when extracted with message command when `markUnused` is `false`
7 years ago
SilverFire - Dmitry Naumenko
b0148a5e8f
Added test to check issue #14274
7 years ago
SilverFire - Dmitry Naumenko
7e681b4a56
Fixed yii.js to follow jquery-pjax API changes
...
Fixes #14926
7 years ago
Robert Korulczyk
a9f2827f87
Add tests with double dot for EmailValidator.
7 years ago
Alexander Makarov
b27b34df84
Removed yii\base\Object import
7 years ago
Dmitry Naumenko
85f8709f14
Fixed test
7 years ago
eXeCUT
0e240ef2d0
Container type for pjax must be string
7 years ago
Alexander Makarov
24efeb812c
Added tests for Query Builder insert, update and delete ( #14911 )
7 years ago
Alexander Makarov
f82f2c00b3
Skip testing variadics on HHVM
7 years ago
Alexander Makarov
34d2223696
Fix for 5.4 and 5.5 tests
7 years ago
Alexander Makarov
a1ddd8b907
Fixes #14129 : Fixed console help to properly work with tricky camelcased controller names
7 years ago
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
Sam
04281cba8c
Fixes #14793 : Module `->get()` and `->has()` methods now check parent modules and fall back to application if nothing found
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
SilverFire - Dmitry Naumenko
40ae296b82
Fixed broken test
7 years ago
SilverFire - Dmitry Naumenko
f9b0090a7d
Added more tests for FileValidator to make sure it works as should
...
Closes #14778
7 years ago
Carsten Brandt
36b535c26b
Fixes #13254 : Made `yii\helpers\StringHelper` and `yii\validators\StringValidator` independent of `Yii::$app` instance
7 years ago
Alexander Makarov
61996979db
Removed commented out code
...
See e69adc19a7 (commitcomment-24119433)
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
a4bd0edeaa
unit test for `yii\base\Widget` added
7 years ago
Klimov Paul
9e6f9e3b6d
Fixed serialization of `yii\db\Connection` instance closes database connection
7 years ago
Carsten Brandt
431c1b01a7
added test case for merging empty arrays
...
issue #14617
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
Carsten Brandt
f7942c0398
make cache test more robust
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
Robert Korulczyk
771a9faed2
Fixed invalid tests ( #14716 )
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
SilverFire - Dmitry Naumenko
0e2b6c41b8
Simplified API of `Formatter::asWeight()` and `Formatter::asLength()` methods
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
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
7 years ago
Robert Korulczyk
0c0942d6e2
Enable `phpdoc_add_missing_param_annotation` rule in php-cs-fixer config. ( #14681 ) [skip ci]
7 years ago