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
5aedb9e040
Fixed typo in PHPDocs
7 years ago
Alexander Makarov
2b6e72f88f
Added missing ,
7 years ago
Carsten Brandt
ee74257c07
adjust framework composer.json after #14338
7 years ago
Carsten Brandt
58d1521280
CHANGELOG for #14620
...
Implemented in
- 3a8feb17a8
- 70ad9f730b
7 years ago
Gediminas Šedbaras
4c61d96786
Corrected return type of BaseActiveRecord::findOne ( #14798 )
7 years ago
SilverFire - Dmitry Naumenko
18689c5ed1
Added missing bracket
7 years ago
SilverFire - Dmitry Naumenko
3a8feb17a8
Updated `yii\web\View` to register JS in jQuery 3.0 compatible way
7 years ago
SilverFire - Dmitry Naumenko
70ad9f730b
Updated yii.activeForm to follow jQuery 3.0 API changes
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
SilverFire - Dmitry Naumenko
85458514bb
Added note to UPGRADE.md regarding #14499
...
Fixes #14782
7 years ago
Carsten Brandt
8861aab2ac
more details in upgrade notes
7 years ago
Carsten Brandt
5ccbe85ffa
improve upgrade instruction for AR::instance()
...
issue #14767
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
Carsten Brandt
9d854c0f25
improved docs for #14273
7 years ago
Sébastien Adam
8700fd701b
Update French translation [skip ci]
7 years ago
Erkan Karataş
dcfc75fffa
Added bg language message [skip ci]
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
97923ac783
ensure backwards compatibiliy with migration without $compact
...
See https://github.com/yiisoft/yii2/pull/14474#discussion_r135237472
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
Carsten Brandt
349589bf3b
fixed typo in grid view docs
...
fixes #14736
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
c1b5240888
Added PHPDoc @throws to yii\base\View::renderPhpFile() [skip ci]
7 years ago
bscheshirwork
8987957f06
Fixes #14697 : Fixed `console\widgets\Table` rendering when there's no data supplied
7 years ago
Klimov Paul
a72b768773
Fix request usage at `Cors`
7 years ago
Carsten Brandt
1278b018fa
Add IIS specific header to secure headers ( #14715 )
...
See https://github.com/yiisoft/yii2/issues/14400#issuecomment-324233065
for more details.
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
Klimov Paul
264831cf21
`BaseMigrateController::refreshDatabase()` renamed to `truncateDatabase()`
7 years ago
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
7 years ago
SilverFire - Dmitry Naumenko
79ad74f763
Fixed wrong PHPDoc annotaion in ActiveRecordInterface
...
Closes #14496
7 years ago
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
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
Carsten Brandt
8ff3756d55
remove loop over an array with one element
...
small optimization, fixes #12061
7 years ago
Carsten Brandt
f87ddd48b8
added note about opcache and PHPDoc annotations to Markdown helper
...
fixes #13601
7 years ago
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
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
Robert Korulczyk
4d5aa9a6cf
Fix self-ignored .gitignore files.
7 years ago
Herbert Maschke
58792cdac5
Fixes #14664 : Add migrate/fresh command to truncate database and apply migrations again
7 years ago
Daniel Gómez Pan
3bd813339e
Updated messages for ES [skip ci]
7 years ago
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.
7 years ago
Robert Korulczyk
b99e955627
Fix CS ( #14665 )
...
* Run php-cs-fixer.
* Enable phpdoc_types rule.
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
b9f582dbf3
Try to fix tests on Travis
7 years ago