161526cd41
HTTPS everywhere ( #19503 )
2022-08-03 12:32:18 +03:00
9eb268a52c
Add guide section for filtering REST collection. ( #19357 )
...
* Add guide section for filtering REST collection.
* Update docs/guide/rest-filtering-collections.md
Co-authored-by: Alexey Rogachev <arogachev90@gmail.com>
* Update docs/guide/rest-filtering-collections.md
Co-authored-by: Alexey Rogachev <arogachev90@gmail.com>
Co-authored-by: Alexey Rogachev <arogachev90@gmail.com>
2022-04-20 09:11:20 +02:00
a87c02c712
Fix more types ( #19333 )
...
* Migration::upsert() returns void
* Unneeded `@property` tags
* Add missing `null` param/return types
* Null types for db\Query + db\ActiveQuery
* Fixed testSelect
* Null types for Validator
* Several more null types
* One more
* Make AccessRule::$allow always a boolean
It doesn't have any special null handling, so it's safe to default to false
* Validator::$skipOnEmpty is always a boolean
* Catch all throwable from Widget::widget()
* Don't limit $previous args to \Exception
The actual \Exception allows $previous to be any throwable in PHP 7+
* Add Throwable catch block to Instance::get()
* Throwable cleanup
Comment changes only.
- Document \Throwable instead of \Exception wherever appropriate
- Removed redundant exception/error classes when \Throwable is referenced
* Yii::setlogger() accepts null
* ArrayHelper::removeValue() can remove any type of value
* Change default $allow value to false
2022-04-03 11:20:21 +02:00
4628b91e73
Fix types ( #19332 )
...
* Migration::upsert() returns void
* Unneeded `@property` tags
* Add missing `null` param/return types
* Null types for db\Query + db\ActiveQuery
* Fixed testSelect
2022-03-30 18:40:10 +02:00
0792736b35
release version 2.0.45
2022-02-11 16:12:40 +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
6c9eb1a90c
(Docs) Fixed preview for $prepareDataProvider ( #19055 )
2021-12-02 17:21:34 +03:00
e3028c524d
Fix #18899 : Replace usages of strpos
with strncmp
and remove redundant usage of array_merge
and array_values
2021-09-28 11:06:46 +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
3a04d3ee6c
Fix guide link language [skip ci]
2020-02-21 18:00:35 +03:00
18f7970d80
Fix #16334 : Serializer support \JsonSerializable
2020-02-21 17:20:29 +03:00
5d7c5f8ae2
Update CreateAction.php ( #16779 ) [skip ci]
2018-10-11 13:17:06 +03:00
80da46c32d
REST OPTIONS Action bug fix with Header name ( #15869 )
2018-03-10 23:59:46 +03:00
f10cb6aeee
SCA with Php Inspections (EA Ultimate)
2018-02-27 19:13:22 +01: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
27376951c1
Fixes #9137 : Added Access-Control-Allow-Method
header for the OPTIONS request
2017-11-30 22:08:38 +03:00
fb23b0d0ea
Code style fixes
2017-11-01 02:43:02 +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
5cec42a108
Fixed error messages in data filters ( #15018 )
2017-10-24 15:38:21 +03:00
695bc54913
Fix translations of DataFilter::$_errorMessages
( #14975 )
...
Fix translations pickup for `DataFilter::$_errorMessages`.
2017-10-16 14:16:51 +03:00
744b87fabc
Fixes #4479 : Implemented REST filters
2017-10-09 00:01:58 +02:00
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
2017-08-21 01:58:49 +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
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
c19b2f7dc8
release version 2.0.11
2017-02-01 17:46:29 +01:00
be4ebdd049
Fixes #13134 : Added logging URL rules (bashkarev)
2017-01-27 19:03:45 +03:00
736cd7bc80
Fixes #13417 : Allow customizing yii\data\ActiveDataProvider
in yii\rest\IndexAction
2017-01-22 11:46:47 +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
4aa935e69e
Fixes #12055 : Changed boolean
to bool
and integer
to int
in phpdoc
2016-11-07 02:51:39 +03:00
32f4dc8997
Fixes #5385 : links created from classes to corresponding guide articles ( #12920 )
2016-11-04 18:55:14 +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
68c30c1034
Replace aliases of functions
2015-06-29 22:59:22 +03:00
631d0ffb66
Merge pull request #8055 from Agrumas/patch-2
...
[REST] extraPatterns should take precedence over patterns
2015-04-20 21:44:20 -04:00
9c40341d03
'links' and 'meta' envelope names are now configurable at yii\rest\Serializer
2015-04-20 13:27:29 +03:00
ef912f4e43
[REST] specifying a higher priority rule via extraPatterns
2015-04-19 15:19:33 +03:00
f1edafffaf
PHPDoc comment doesn't contain all necessary @throws tag
...
close #5762
2014-10-25 12:47:08 +02:00
998076d0c8
Fixes #5665 : The currentPage
meta data in the RESTful result should be 1-based, similar to that in HTTP headers
2014-10-20 09:46:44 -04:00
5cba8b2e68
Fix PHPDoc [skip ci]
2014-09-24 21:04:19 +04:00
91e41b0470
Fixes #5001 : yii\rest\CreateAction
, yii\rest\UpdateAction
and yii\rest\DeleteAction
should throw 500 error if the model operation returns false without validation errors
2014-09-12 13:49:34 -04:00
1bd738243c
Typo fixed inside \yii\rest\CreateAction
2014-09-09 04:18:53 +04:00