23 Commits

Author SHA1 Message Date
97a4d711ec Merge branch 'master' into sync-master-2052. 2025-04-26 19:03:07 -04:00
52e4a3e645 release version 2.0.50 2024-05-30 20:23:31 +03:00
20d6c65db2 Merge branch 'master' into sync-to-master. 2024-03-20 06:11:31 -03:00
e2a167028b Upgrade to PSR12 coding standard (#20121) 2024-03-19 17:21:27 +03:00
c9c100acd7 Remove deprecated method className() for branch 2.2. (#19894) 2023-07-16 21:45:39 +08:00
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
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
6c9eb1a90c (Docs) Fixed preview for $prepareDataProvider (#19055) 2021-12-02 17:21:34 +03:00
db47207018 Fix #18534: Added prepareSearchQuery property in yii\rest\IndexAction 2021-03-13 00:05:49 +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
744b87fabc Fixes #4479: Implemented REST filters 2017-10-09 00:01:58 +02:00
c19b2f7dc8 release version 2.0.11 2017-02-01 17:46:29 +01:00
736cd7bc80 Fixes #13417: Allow customizing yii\data\ActiveDataProvider in yii\rest\IndexAction 2017-01-22 11:46:47 +03:00
32f4dc8997 Fixes #5385: links created from classes to corresponding guide articles (#12920) 2016-11-04 18:55:14 +03:00
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
0c14f47f9a Fixes #3793: Changed inline autocomplete hints style to get more IDEs support 2014-06-20 17:40:00 +04:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
18c7c63e66 rest WIP 2014-03-05 22:21:55 -05:00
39947be66b rest WIP 2014-02-28 21:25:43 -05:00