Brandon Kelly
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()`
7 years ago
Klimov Paul
65f6b59b35
`@inheritdoc` notation changed
7 years ago
Elvira Sheina
27376951c1
Fixes #9137 : Added `Access-Control-Allow-Method` header for the OPTIONS request
7 years ago
Alexander Makarov
fb23b0d0ea
Code style fixes
7 years ago
Alexander Makarov
376006a2d5
Data filter enhancements and docs
...
- Added docs.
- Moved to "data" namespace.
- Moved messages to "yii" category.
- Added Russian messages translation.
7 years ago
bscheshirwork
5cec42a108
Fixed error messages in data filters ( #15018 )
7 years ago
Robert Korulczyk
695bc54913
Fix translations of `DataFilter::$_errorMessages` ( #14975 )
...
Fix translations pickup for `DataFilter::$_errorMessages`.
7 years ago
Paul Klimov
744b87fabc
Fixes #4479 : Implemented REST filters
7 years ago
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
7 years ago
Robert Korulczyk
fe8a0a6a2e
Enable `no_useless_else` rule in php-cs-fixer ( #14420 )
7 years ago
Robert Korulczyk
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.
7 years ago
Robert Korulczyk
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.
7 years ago
Carsten Brandt
c19b2f7dc8
release version 2.0.11
8 years ago
Dmitriy Bashkarev
be4ebdd049
Fixes #13134 : Added logging URL rules (bashkarev)
8 years ago
Leandro Gehlen
736cd7bc80
Fixes #13417 : Allow customizing `yii\data\ActiveDataProvider` in `yii\rest\IndexAction`
8 years ago
Carsten Brandt
9821c589c5
fixed issue with rest\UrlRule extraPatterns
...
url creation did not work when no HTTP verb was specified.
fixes #13200
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
Boudewijn Vahrmeijer
32f4dc8997
Fixes #5385 : links created from classes to corresponding guide articles ( #12920 )
8 years ago
LAV45
04848a6c3b
Fix yii\rest\Serializer serialize ArrayDataProvider with pagination bug
...
fixes #11987
close #12683
8 years ago
Klimov Paul
cd8c01f555
Fixed `yii\rest\Serializer::serialize()` serializes DataProvider incorrectly, if models keys do not compose integer sequence
8 years ago
Carsten Brandt
10806a65a4
validate input in REST serializer
...
fixes #12107
8 years ago
Alexander Mohorev
68c30c1034
Replace aliases of functions
9 years ago
Klimov Paul
9c40341d03
'links' and 'meta' envelope names are now configurable at `yii\rest\Serializer`
10 years ago
Agrumas
ef912f4e43
[REST] specifying a higher priority rule via extraPatterns
10 years ago
Alexander Mohorev
f1edafffaf
PHPDoc comment doesn't contain all necessary @throws tag
...
close #5762
10 years ago
Qiang Xue
998076d0c8
Fixes #5665 : The `currentPage` meta data in the RESTful result should be 1-based, similar to that in HTTP headers
10 years ago
Arthur Khachaturov
5cba8b2e68
Fix PHPDoc [skip ci]
10 years ago
Qiang Xue
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
10 years ago
Alexander Kochetov
1bd738243c
Typo fixed inside \yii\rest\CreateAction
10 years ago
Alexander Makarov
31a17d6791
Revert "Fixes #4829 : Removed `PARSING_ONLY` from `\yii\rest\UrlRule` to allow creating non-GET URLs for forms and tests"
...
This reverts commit 4ffbfec9aa
.
10 years ago
Alexander Makarov
4ffbfec9aa
Fixes #4829 : Removed `PARSING_ONLY` from `\yii\rest\UrlRule` to allow creating non-GET URLs for forms and tests
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
3a1e0f3a5c
property codestyle framework
10 years ago
Alexander Makarov
0edd8bc65a
Fixed missing and incorrect phpdoc
10 years ago
Alexander Makarov
0c14f47f9a
Fixes #3793 : Changed inline autocomplete hints style to get more IDEs support
10 years ago
Alexander Makarov
d7a251bbec
Removed unused imports, added missing phpdoc
10 years ago
Qiang Xue
9b2fec6b50
Moved yii\rest\Controller::checkAccess() to ActiveController.
11 years ago
Qiang Xue
3dd4e71938
rest guide WIP [skip ci]
11 years ago
Alexander Makarov
b491441246
Removed `yii\rest\ActiveController::$transactional` property and connected functionality
11 years ago
Alexander Makarov
c7c708d454
Removed unused imports
11 years ago
Qiang Xue
0b29c9607d
fixed broken API links [skip ci]
11 years ago
Qiang Xue
134d3d4610
Fixes #2034 : Added `ContentNegotiator` to support response format and language negotiation
11 years ago
Alexander Makarov
75154d351d
Refactored AR find
11 years ago
Qiang Xue
8a3fe89149
renamed "auth" to "authenticator". [skip ci]
11 years ago
Qiang Xue
83da0cd07a
refactored authentication filters.
11 years ago
Qiang Xue
12cd71d7c4
Refactored rate limiting by turning RateLimiter into an action filter.
11 years ago
Qiang Xue
a15a3835c7
Moved all filter classes to namespace `yii\filters`
11 years ago
Qiang Xue
50e338127d
Improved action filter and action execution flow by supporting installing action filters at controller, module and application levels
11 years ago
Carsten Brandt
85412adb46
perform API auth before configured User class may require login
...
This allows usage of AccessControl filter in API
11 years ago
Carsten Brandt
0b2aafc780
fixed private / self in helpers
...
fixes #2886
11 years ago