29 Commits

Author SHA1 Message Date
55ea8eee1e Fix sorting link for multisort with default order (#19733)
* Add sort tests

* Fix link for multisort

* changelog

* Fix test
2023-01-10 12:16:04 +01:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
e691713ed7 Fix #19171: Added $pagination and $sort to \yii\rest\IndexAction for easy configuration 2022-01-23 23:26:59 +03:00
1271bc419f Fix #19041: Fix PHP 8.1 issues 2022-01-14 13:52:01 +03:00
db47207018 Fix #18534: Added prepareSearchQuery property in yii\rest\IndexAction 2021-03-13 00:05:49 +03:00
4997c51152 Fix #18548: Fix bug with REST rules with prefixes containing tokens not being parsed properly 2021-03-04 17:01:22 +03:00
bb1489dab1 Fix #18493: Faster request parsing for REST UrlRule with prefix handling 2021-01-26 15:49:14 +03:00
03befccd48 Fix #18487: Allow creating URLs for non-GET-verb rules 2021-01-26 14:47:53 +03:00
fb35f20f6d Fix #18435: Change the check order whether an object is an implementation of Arrayable or JsonSerializable in \yii\base\ArrayableTrait::toArray() and \yii\rest\Serializer::serialize() 2020-12-21 11:08:09 +03:00
ecbafa2e3a Fix #17886: yii\rest\Serializer serialize arrays 2020-02-23 15:58:51 +03:00
6e9764b467 Added support of JsonSerializable interface to ArrayableTrait (#17888) 2020-02-22 12:34:27 +03:00
18f7970d80 Fix #16334: Serializer support \JsonSerializable 2020-02-21 17:20:29 +03:00
f1277d6d21 Fixes #6844: yii\base\ArrayableTrait::toArray() now allows recursive $fields and $expand 2018-01-15 18:15:32 +03:00
eac6a5d6af Fixes #14998: Adjusted variable name in tests 2017-12-19 23:35:33 +03:00
376006a2d5 Data filter enhancements and docs
- Added docs.
- Moved to "data" namespace.
- Moved messages to "yii" category.
- Added Russian messages translation.
2017-10-26 11:32:52 +03:00
64d8af61a6 Fixes for PHP 7.2 compatibility (#14959) 2017-10-19 01:54:40 +03:00
560d5b53e7 unit test fix 2017-10-10 12:42:06 +03:00
744b87fabc Fixes #4479: Implemented REST filters 2017-10-09 00:01:58 +02: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
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
daa8b67c7b Fixes #13350, #14094, #11288
- Bug #13350: Fixed bug with incorrect caching of `yii\web\UrlRule::createUrl()` results in `yii\web\UrlManager`.
- Bug #14094: Fixed bug when single `yii\web\UrlManager::createUrl()` call my result multiple calls of `yii\web\UrlRule::createUrl()` for the same rule.
- Enh #11288: Added support for caching of `yii\web\UrlRule::createUrl()` results in `yii\web\UrlManager` for rules with defaults.
2017-05-10 12:30:43 +03:00
6397791513 Fixed whitespaces to match code style [skip ci] 2017-03-14 09:42:13 +03:00
9821c589c5 fixed issue with rest\UrlRule extraPatterns
url creation did not work when no HTTP verb was specified.
fixes #13200
2016-12-16 00:00:27 +01:00
01997441cc added tests for rest\UrlRule::createUrl()
verify issue #13200
2016-12-15 01:41:28 +01:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
04848a6c3b Fix yii\rest\Serializer serialize ArrayDataProvider with pagination bug
fixes #11987
close #12683
2016-10-20 13:17:10 +02:00
cd8c01f555 Fixed yii\rest\Serializer::serialize() serializes DataProvider incorrectly, if models keys do not compose integer sequence 2016-08-29 18:20:16 +03:00
10806a65a4 validate input in REST serializer
fixes #12107
2016-08-08 13:14:22 +02:00
ef912f4e43 [REST] specifying a higher priority rule via extraPatterns 2015-04-19 15:19:33 +03:00