Carsten Brandt
5ccbe85ffa
improve upgrade instruction for AR::instance()
...
issue #14767
2017-09-08 16:36:42 +02:00
Carsten Brandt
36b535c26b
Fixes #13254 : Made yii\helpers\StringHelper and yii\validators\StringValidator independent of Yii::$app instance
2017-09-07 22:32:07 +03:00
Klimov Paul
e69adc19a7
Fixed yii\widgets\ActiveField::$options does not support 'class' option in array format
2017-09-06 17:43:48 +03:00
Carsten Brandt
9d854c0f25
improved docs for #14273
2017-09-06 09:32:50 +02:00
Sébastien Adam
8700fd701b
Update French translation [skip ci]
2017-09-06 01:49:43 +03:00
Erkan Karataş
dcfc75fffa
Added bg language message [skip ci]
2017-09-05 13:23:43 +03:00
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
2017-09-01 23:49:53 +02:00
Klimov Paul
9e6f9e3b6d
Fixed serialization of yii\db\Connection instance closes database connection
2017-09-01 13:30:56 +03:00
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
2017-09-01 10:50:36 +02:00
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
2017-09-01 09:34:56 +02:00
Carsten Brandt
349589bf3b
fixed typo in grid view docs
...
fixes #14736
2017-09-01 09:20:38 +02:00
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.
2017-08-29 15:13:28 +03:00
bscheshirwork
c1b5240888
Added PHPDoc @throws to yii\base\View::renderPhpFile() [skip ci]
2017-08-28 02:32:27 +03:00
bscheshirwork
8987957f06
Fixes #14697 : Fixed console\widgets\Table rendering when there's no data supplied
2017-08-28 01:27:54 +03:00
Klimov Paul
a72b768773
Fix request usage at Cors
2017-08-25 17:41:46 +03:00
Carsten Brandt
1278b018fa
Add IIS specific header to secure headers ( #14715 )
...
See https://github.com/yiisoft/yii2/issues/14400#issuecomment-324233065
for more details.
2017-08-25 13:31:27 +03:00
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
2017-08-25 13:30:28 +03:00
Klimov Paul
264831cf21
BaseMigrateController::refreshDatabase() renamed to truncateDatabase()
2017-08-24 13:08:46 +03:00
Carsten Brandt
98a71d8b0d
Adjust QueryInterface and QueryTrait types on where() ( #14714 )
...
these did never allow a string condition. Only SQL Query and AR implementation do.
fixes #14496
2017-08-24 10:59:20 +02:00
SilverFire - Dmitry Naumenko
79ad74f763
Fixed wrong PHPDoc annotaion in ActiveRecordInterface
...
Closes #14496
2017-08-24 11:06:17 +03:00
Erkan Karataş
aaedd200b0
Formatter asDatetime() documentation $format fix ( #14708 )
...
In the description asDatetime() function about the $format parameter it says that the default value is taken from $dateFormat while the correct is $datetimeFormat
2017-08-23 09:44:05 +02:00
Sam
4081a4b203
Fixes #14184 : Module service locator now falls back to its parent module service locator in case component isn't found
2017-08-23 00:38:39 +03:00
Carsten Brandt
8ff3756d55
remove loop over an array with one element
...
small optimization, fixes #12061
2017-08-22 13:03:01 +02:00
Carsten Brandt
f87ddd48b8
added note about opcache and PHPDoc annotations to Markdown helper
...
fixes #13601
2017-08-22 12:09:42 +02:00
Carsten Brandt
9e713dba29
break if a matching trusted host is found
...
fix for https://github.com/yiisoft/yii2/pull/13780#discussion_r134186910
thanks to @krukru !
PR #13780
2017-08-21 16:37:01 +02:00
SilverFire - Dmitry Naumenko
0e2b6c41b8
Simplified API of Formatter::asWeight() and Formatter::asLength() methods
2017-08-21 13:10:19 +03:00
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".
2017-08-21 11:19:35 +02:00
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
2017-08-21 01:58:49 +03:00
Robert Korulczyk
0c0942d6e2
Enable phpdoc_add_missing_param_annotation rule in php-cs-fixer config. ( #14681 ) [skip ci]
2017-08-21 01:57:23 +03:00
Robert Korulczyk
4d5aa9a6cf
Fix self-ignored .gitignore files.
2017-08-20 13:39:06 +02:00
Herbert Maschke
58792cdac5
Fixes #14664 : Add migrate/fresh command to truncate database and apply migrations again
2017-08-20 01:00:41 +03:00
Daniel Gómez Pan
3bd813339e
Updated messages for ES [skip ci]
2017-08-19 00:12:15 +03:00
Robert Korulczyk
9b118aafa0
Enable non_printable_character rule in php-cs-fixer config ( #14667 )
...
* Use "\u{00a0}" as nbsp.
* Enable non_printable_character rule.
* Fix test for PHP 5.
2017-08-18 13:59:57 +02:00
Robert Korulczyk
b99e955627
Fix CS ( #14665 )
...
* Run php-cs-fixer.
* Enable phpdoc_types rule.
2017-08-18 12:10:42 +02:00
Alone
4b9d7a6bdd
Fixes #14596 : Fix event call on init in yii\widgets\BaseListView
2017-08-17 18:18:51 +03:00
Sam
0017d9c660
Fixes #13780 : Added support for trusted proxies in yii\web\Request
2017-08-17 13:14:51 +03:00
SilverFire - Dmitry Naumenko
b9f582dbf3
Try to fix tests on Travis
2017-08-16 08:04:35 +03:00
SilverFire - Dmitry Naumenko
7c73b0b79d
Enhanced tests, updated CHNAGELOG
2017-08-15 23:13:59 +03:00
SilverFire - Dmitry Naumenko
b577e302f7
Enhanced PHPDocs, added tests
2017-08-14 23:48:33 +03:00
SilverFire - Dmitry Naumenko
4028c69ed5
Merge branch 'master' into nineinchnick-9703-si-formatters
...
Conflicts:
framework/i18n/Formatter.php
2017-08-14 22:55:45 +03:00
Alexander Makarov
e9fad56381
#14151 : Added attribute name to AttributesBehavior callback signature
...
See 6ffa5fb087 (commitcomment-23630375)
2017-08-14 12:11:59 +03:00
SilverFire - Dmitry Naumenko
e4601e5a91
Fixed changelog
2017-08-14 07:27:53 +03:00
Alexander Makarov
6ffa5fb087
Additional fixes for #14151
2017-08-14 02:05:54 +03:00
bscheshirwork
2b9b0c7166
Fixes #14151 : Added AttributesBehavior that assigns values specified to one or multiple attributes of an AR object when certain events happen
2017-08-14 01:03:10 +03:00
Carsten Brandt
cda3089623
Fixed batchInsert casting of double values according to locale ( #14448 )
...
fixes #6526
2017-08-13 22:15:04 +02:00
SilverFire - Dmitry Naumenko
368540f8d0
Added tests
2017-08-13 21:15:06 +03:00
shirase
b6a5697c00
User can login by cookie only once when autoRenewCookie is set to false
2017-08-13 21:15:02 +03:00
forevermatt
1d44de7b15
Fix abstract column type for unsigned primary key ( #14626 ) [skip ci]
2017-08-11 02:59:40 +03:00
TerraSkye
af71e0fca0
Fixing example in the documentation ( #14613 ) [skip ci]
2017-08-08 12:53:42 +03:00
Alexander Makarov
648971a82b
Fixes #14542 : Ensured only ASCII characters are in CSRF cookie value since binary data causes issues with ModSecurity and some browsers
2017-08-07 13:55:10 +03:00