552593ca3b
Prepare for new apidoc (part 2) ( #19010 )
...
* Fix broken links for events with different namespace
* Fix broken links in see tag
* Fix broken links in see tag (loadData())
* Fix broken link for var_export()
* Fix broken link for CVE
* Remove redundant markdown link wrap in see tags
* Remove see tags that refer to private properties
* Remove more see tags that refer to private properties
* Remove see tags that refer to private methods
* Remove one more redundant markdown link wrap in see tag [skip ci]
* Fix typo in see tag (causes broken link)
* Remove more see tags that refer to private methods
2021-11-18 10:10:09 +03:00
fa6f0ef658
Fix variable references in phpdoc ( #19006 )
2021-11-10 13:26:55 +03:00
4b3361bf02
Docs enhancements ( #18985 )
...
- added more strict checks in if condition: that if `$user` exists, only then call its method
- Renamed `verifyPassword` to `validatePassword` because yii2-advanced-template use that method name
2021-10-29 22:02:24 +02:00
0041f034fd
[doc] Update PHP doc links ( #18957 )
...
* Replace https://secure.php.net with https://www.php.net
* Replace http://www.php.net with https://www.php.net
2021-10-19 14:50:26 +02:00
8a48339e35
Added example with hyphen in action ID
...
Also added link to guide on actions - don't know if you have a better way than providing a static URL... And maybe it should be moved to the class description?
2021-06-21 15:00:48 +02:00
7966fe47e6
Scrutinizer fixes ( #18685 )
...
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/filters/AccessRule.php?selectedLabels%5B0%5D=2&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/helpers/BaseFileHelper.php?selectedLabels%5B0%5D=2&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Application.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Module.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/web/MultipartFormDataParser.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/web/Session.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Controller.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/MigrateController.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Added vardocs, and small refactor
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/conditions/InConditionBuilder.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/Connection.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/mssql/QueryBuilder.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/log/Logger.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/BaseMigrateController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Adding space between type
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/CacheController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/FixtureController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/MigrateController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0
* Update framework/console/controllers/CacheController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/CacheController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
* Update framework/console/controllers/FixtureController.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2021-05-31 21:07:36 +03:00
82be8b61cf
Replacing deprecated ::className() with ::class ( #18671 )
2021-05-22 23:14:54 +03:00
6e694ee249
release version 2.0.38
2020-09-15 00:52:10 +03:00
7423222eae
Add docs about IP blocks for property $ips ( #18261 )
2020-08-27 16:44:34 +03:00
175a201004
Fix #18236 : Allow yii\filters\RateLimiter to accept a closure function for the $user property in order to assign values on runtime
2020-08-19 13:57:45 +03:00
7bd2950a9a
Fix #18031 : HttpBasicAuth with auth callback now triggers login events same was as other authentication methods
2020-07-03 16:53:21 +03:00
d4a3841d1c
Fix #18004 : Clarify where PageCache::$cacheCookies and PageCache::$cacheHeaders are used
2020-06-10 14:58:07 +03:00
f226c3cb38
Fix #12539 : yii\filters\ContentNegotiator now generates 406 'Not Acceptable' instead of 415 'Unsupported Media Type' on content-type negotiation fail
...
Co-authored-by: PowerGamer1 <PowerGamer1@users.noreply.github.com>
2020-01-09 23:43:24 +03:00
a226b76776
Fixes #17341 : Allow callable objects to be set to \yii\filters\AccessRule::$roleParams
2019-06-12 00:02:07 +03:00
58761b4411
Fixes #16820 : yii\filters\Cors::prepareHeaders() now accepts Access-Control-Allow-Headers in preflight response
2019-04-16 17:27:26 +03:00
a3b6d227ba
Fixes #16335 : Fixed in yii\filters\AccessRule::matchIP() user IP validation with netmask in rule
2019-03-20 14:44:22 +03:00
bdb7c64910
Update to https protocol for php.net links ( #17168 ) [skip ci]
...
* Updated php.net link for some MemCache properties [skip ci]
* Changed protocol to https for links to php.net in comments
* Changed protocol to https for links to php.net in code
* Changed www.php.net (http) to secure.php.net (https) in comments
* Changed www.php.net (http) to secure.php.net (https) in code
* Changed protocol to https for links to php.net in UPGRADE.md
* Changed protocol to https for links to pecl.php.net in comments
* Changed us.php.net to secure.php.net (https) in comments
* Changed protocol to https for links to php.net in docs
* Changed www.php.net (http) to secure.php.net (https) in docs
* Changed protocol to https for links to pecl.php.net in docs
* Changed ru/jp.php.net to secure.php.net (https) in docs
Don't sure about russian guide: is this links meant to be for guide on russian, or not?
2019-02-28 13:09:27 +03:00
197feeb255
Fixes #16969 : Fix yii\filters\PageCache incorrectly storing empty data in some cases
2018-12-14 19:52:34 +03:00
4e6eb5c814
Fixes #16766 : yii\filters\ContentNegotiator was not setting Vary header to inform cache recipients
2018-10-07 19:03:01 +03:00
77d7a5046e
Small PHPDoc comment fixes in \yii\filters\Cors [skip ci] ( #16460 )
2018-06-30 02:17:27 +03:00
4e17feb5bb
Fixes #16292 : Fixed misconfigured CORS filter exception throwing. Now it throws InvalidConfigException in Debug mode
2018-05-18 00:05:50 +03:00
0c3b3f79d5
Minor [ci skip]
2018-05-01 11:00:32 +03:00
a1f52ef118
Adjusted code style, fixed typo
2018-05-01 01:16:03 +03:00
2b6d181878
Fix #16193 to not reflect origin header for wildcard origins
2018-05-01 00:01:25 +08:00
713a8b92f8
Fix action name in commentaries (list -> index) ( #16124 ) [skip ci]
...
Signed-off-by: filipe1309 <filipe1309@outlook.com>
2018-04-19 00:01:00 +03:00
35c3ff2fbd
Fixes #16010 : Fixed yii\filters\ContentNegotiator behavior when GET parameters contain an array
2018-03-30 18:16:52 +03:00
1a74b3d4f8
[minor] SCA with Php Inspections (EA Ultimate) ( #15871 )
...
* Php Inspections (EA Ultimate): use type casting where applicable
* Php Inspections (EA Ultimate): use constants where applicable
* Php Inspections (EA Ultimate): CS
* Php Inspections (EA Ultimate): address some of one-time used variables
* Php Inspections (EA Ultimate): address some of performance-related findings
* Php Inspections (EA Ultimate): address some of performance-related findings
* Php Inspections (EA Ultimate): revert a constant usage
* Php Inspections (EA Ultimate): revert sequential assignments
* Php Inspections (EA Ultimate): build is green again
* Php Inspections (EA Ultimate): revert array_merge tweaks
* Php Inspections (EA Ultimate): revert BC-incompatible one-time used variable tweak
* Update description [skip ci]
* Php Inspections (EA Ultimate): CS
2018-03-12 01:37:19 +03:00
adccc89c38
Restore removed line
2018-02-21 12:02:41 +01:00
da89225c8d
Fix HttpAuthHeader
2018-02-20 13:52:50 +01:00
22832b7c49
release version 2.0.14
2018-02-19 00:27:09 +02:00
78d54bc541
Fixed yii\db\HttpBasicAuth not to switch identity, when user is already authenticated
...
Fixes #15658
2018-02-17 13:16:15 +02:00
eab30d38a1
getView() made public instead of protected
2018-02-13 12:12:42 +03:00
c382d3e8d4
Fixes #15120 : Refactored dynamic caching introducing DynamicContentAwareInterface and DynamicContentAwareTrait
2018-02-13 00:19:01 +03:00
25f8b263e5
Fixes #14811 : Fixed yii\filters\HttpCache to work with PHP 7.2
2018-02-11 12:08:01 +03:00
e6f5c46cdc
Fixes #15633 : Deprecate some things going away/changing in 2.1
...
- Deprecated `yii\base\BaseObject::className()` in favor of native PHP syntax `::class`, which does not trigger autoloading
- Deprecated XCache and Zend data cache support as caching backends
- Deprecated `yii\BaseYii::powered()` method
- Added `yii\base\InvalidArgumentException` and deprecated `yii\base\InvalidParamException`
- Added `yii\BaseYii::debug()` and deprecated `yii\BaseYii::trace()`
2018-02-11 01:48:29 +03:00
65f6b59b35
@inheritdoc notation changed
2018-01-23 13:11:24 +02:00
3763542dc4
Fixes #15494 : Fixed missing WWW-Authenticate header
2018-01-21 22:17:17 +03:00
eaca9c4202
Moved time() statement right before usages in \yii\filters\RateLimiter ( #14713 )
2018-01-18 11:33:29 +03:00
b8f4397426
Fixes #15432 : Fixed wrong value being set in yii\filters\RateLimiter::checkRateLimit() resulting in wrong X-Rate-Limit-Reset header value
2017-12-30 15:16:26 +03:00
1958d8bff2
Merge branch 'accept_options_in_cors' of github.com:michaelarnauts/yii2
2017-12-27 13:51:03 -02:00
1b8da6d951
Add StringHelper::matchWildcard() ( #15389 )
...
`StringHelper::matchWildcard()` added
2017-12-20 16:16:25 +02:00
c8fbe40352
Fixes #9253 : Allow variations to be a string for yii\filters\PageCache and yii\widgets\FragmentCache
2017-12-19 12:52:17 +03:00
a1fa635332
Fixes #15219 : Added yii\filters\auth\HttpHeaderAuth
2017-12-14 15:37:22 +03:00
1b63f7c891
Fixes #15320 : Fixed special role checks in yii\filters\AccessRule::matchRole()
2017-12-11 13:18:59 +03:00
2d672b6722
release version 2.0.13
2017-11-03 01:09:29 +03:00
fb23b0d0ea
Code style fixes
2017-11-01 02:43:02 +03:00
abc0cb5c1e
improved docs for AccessRule::$denyCallback
...
fixes #12626
close #14982
2017-10-19 12:42:03 +02:00
c9de616b4c
Fixes #13403 : Added 'permissions' additionally to 'roles' in yii\filters\AccessRule in order to be able to specify these separately
2017-10-08 23:50:59 +02:00
ea2c475ea7
Moved HTTP_AUTHORIZATION header check to \yii\web\Request, added docs
...
Closes #13564
2017-10-08 23:22:11 +03:00
0b2e79eac5
Fixed BasicHttpAuth to respect HTTP_AUTHORIZATION header
...
Closes #13564
2017-10-08 11:25:50 +03:00