132 Commits

Author SHA1 Message Date
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
a72b768773 Fix request usage at Cors 2017-08-25 17:41:46 +03:00
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
1501c659ac Add empty lines before return statements. (#14682) [skip ci] 2017-08-21 01:58:49 +03:00
b99e955627 Fix CS (#14665)
* Run php-cs-fixer.

* Enable phpdoc_types rule.
2017-08-18 12:10:42 +02:00
Sam
0017d9c660 Fixes #13780: Added support for trusted proxies in yii\web\Request 2017-08-17 13:14:51 +03:00
6a6d90ce03 Add handleOptions to Cors filter so OPTIONS requests are handled for the preflight check. 2017-08-16 09:40:28 +02:00
459721d471 Fixes #14471: ContentNegotiator will always set one of the configured server response formats even if the client does not accept any of them 2017-07-30 00:49:33 +03:00
e2ba94abd6 Fixes #7823: Added yii\filters\AjaxFilter filter 2017-07-24 17:25:16 +03:00
d38908fc13 Fixed #14469: updated RFC links 2017-07-17 16:21:49 +03:00
062e1c7e67 Uppercased HTTP methods as required by RFC [skip ci] 2017-07-16 18:06:25 +03:00
fe8a0a6a2e Enable no_useless_else rule in php-cs-fixer (#14420) 2017-07-10 11:26:21 +03:00
ba0ab403b5 Added php-cs-fixer coding standards validation to Travis CI (#14100)
* php-cs-fixer: PSR2 rule.

* php-cs-fixer: PSR2 rule - fix views.

* Travis setup refactoring.

* Add php-cs-fixer to travis cs tests.

* Fix tests on hhvm-3.12

* improve travis config

* composer update

* revert composer update

* improve travis config

* Fix CS.

* Extract config to separate classes.

* Extract config to separate classes.

* Add file header.

* Force short array syntax.

* binary_operator_spaces fixer

* Fix broken tests

* cast_spaces fixer

* concat_space fixer

* dir_constant fixer

* ereg_to_preg fixer

* function_typehint_space fixer

* hash_to_slash_comment fixer

* is_null fixer

* linebreak_after_opening_tag fixer

* lowercase_cast fixer

* magic_constant_casing fixer

* modernize_types_casting fixer

* native_function_casing fixer

* new_with_braces fixer

* no_alias_functions fixer

* no_blank_lines_after_class_opening fixer

* no_blank_lines_after_phpdoc fixer

* no_empty_comment fixer

* no_empty_phpdoc fixer

* no_empty_statement fixer

* no_extra_consecutive_blank_lines fixer

* no_leading_import_slash fixer

* no_leading_namespace_whitespace fixer

* no_mixed_echo_print fixer

* no_multiline_whitespace_around_double_arrow fixer

* no_multiline_whitespace_before_semicolons fixer

* no_php4_constructor fixer

* no_short_bool_cast fixer

* no_singleline_whitespace_before_semicolons fixer

* no_spaces_around_offset fixer

* no_trailing_comma_in_list_call fixer

* no_trailing_comma_in_singleline_array fixer

* no_unneeded_control_parentheses fixer

* no_unused_imports fixer

* no_useless_return fixer

* no_whitespace_before_comma_in_array fixer

* no_whitespace_in_blank_line fixer

* not_operator_with_successor_space fixer

* object_operator_without_whitespace fixer

* ordered_imports fixer

* php_unit_construct fixer

* php_unit_dedicate_assert fixer

* php_unit_fqcn_annotation fixer

* phpdoc_indent fixer

* phpdoc_no_access fixer

* phpdoc_no_empty_return fixer

* phpdoc_no_package fixer

* phpdoc_no_useless_inheritdoc fixer

* Fix broken tests

* phpdoc_return_self_reference fixer

* phpdoc_single_line_var_spacing fixer

* phpdoc_single_line_var_spacing fixer

* phpdoc_to_comment fixer

* phpdoc_trim fixer

* phpdoc_var_without_name fixer

* psr4 fixer

* self_accessor fixer

* short_scalar_cast fixer

* single_blank_line_before_namespace fixer

* single_quote fixer

* standardize_not_equals fixer

* ternary_operator_spaces fixer

* trailing_comma_in_multiline_array fixer

* trim_array_spaces fixer

* protected_to_private fixer

* unary_operator_spaces fixer

* whitespace_after_comma_in_array fixer

* `parent::setRules()` -> `$this->setRules()`

* blank_line_after_opening_tag fixer

* Update finder config.

* Revert changes for YiiRequirementChecker.

* Fix array formatting.

* Add missing import.

* Fix CS for new code merged from master.

* Fix some indentation issues.
2017-06-12 12:25:45 +03:00
cb53b2feec Fixes #14081: Added yii\caching\CacheInterface to make custom cache extensions adoption easier 2017-06-11 19:18:33 +03:00
cd3c6404cb Fixes #4999: Added support for wildcards at yii\filters\AccessRule::$controllers 2017-06-02 21:19:38 +03:00
a1f396c5d8 improved docs 2017-05-31 17:46:34 +02:00
88bbd61988 Alternative implementation for passing parameters to AccessRule roles
fixes #8426: `yii\filters\AccessRule` now allows passing GET or other parameters to the role checking function
replaces #8426
2017-05-31 17:46:34 +02:00
f8b3d68817 Fixes #4793: yii\filters\AccessControl now can be used without user component 2017-05-03 00:18:16 +02:00
100213d9b2 Removed redundant else 2017-04-26 12:02:17 +03:00
1e65fc29ed Fixes #14033: Fixed yii\filters\AccessRule::matchIp() erroring in case IP is not defined under HHVM 2017-04-26 11:53:42 +03:00
bda091bbb2 yii\filters\RateLimiter refactored (#13994)
Refactored yii\filters\RateLimiter and added tests
2017-04-24 22:20:46 +03:00
a849e0e4e9 Improved description of format of $controllers
Improved explanation of the format of the $controllers property. This explains what is meant by "prefixed with the module ID"

close #13488
2017-02-02 01:33:20 +01:00
da944aa9c0 Rebased "Revamps PageCache to store data in one entry (#10506)" (#12145) 2016-12-14 14:59:00 +03:00
35998449eb Add yii\filters\HostControl::$fallbackHostInfo (#13117) 2016-12-03 08:25:39 +02:00
7da77c3d5a created HostControl filter to prevent Host header attacks
fixes #13050
close #13063
2016-12-01 00:59:26 +01:00
7a3a342127 Fix errors reported by apidoc extension. (#12986) 2016-11-13 14:51:21 +01:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
2a9a997277 Added support for wildcards for optional at yii\filters\auth\AuthMethod 2016-10-10 12:24:04 +03:00
cd26cbf11a added docs example to HttpBasicAuth filter
fixes #8740
2016-08-30 15:06:33 +02:00
bbeebaa11e Update PageCache.php 2016-08-19 12:20:59 +03:00
931e8cda96 Update PageCache.php 2016-08-17 10:56:07 +03:00
afc298c6ef Fixed HttpCache was sending an empty Pragma header (#12100) (#12123) 2016-08-09 15:03:57 +02:00
bbbb98626f HttpCache no longer returns 304 HTTP code when callbacks return null (#12099) 2016-08-08 23:58:39 +03:00
1c65516153 Update AuthMethod.php (#12063) [skip ci] 2016-08-02 11:30:01 +03:00
7126209037 make AccessRule::matchVerb() more reliable
related to #11857
2016-07-03 12:47:56 +02:00
d9122a74a9 improved tests and docs for #11857 2016-07-03 11:02:25 +02:00