Maksim Spirkov
7dd3dede14
Add generics for all controllers ( #20675 )
2025-11-03 12:59:23 +03:00
Maksim Spirkov
c569e9136b
Fix #20666 : Add missing generics in yii\base, yii\console, yii\filters and yii\web namespaces
2025-10-31 22:43:14 +03:00
Maksim Spirkov
716024c91e
Remove array shapes from @return annotations ( #20580 )
2025-10-07 08:10:36 +03:00
Maksim Spirkov
53bdfc3b2c
Fix PHPStan errors ( #20523 )
2025-09-15 23:38:06 +03:00
Maksim Spirkov
53256fdd24
Fix #20513 : Fix code examples in PHPDoc
2025-09-06 00:22:56 +03:00
Christina Reichel
5aabdd3a21
Fix #20447 : Fix behavior for yii\web\Controller::bindActionParams around mixed type
2025-08-18 18:06:37 +03:00
Максим Спирков
52f28ee2ec
Fix #20433 : Added PHPStan/Psalm annotations for some controllers methods: beforeAction, afterAction and bindActionParams
2025-07-08 11:33:57 +03:00
Chris Reichel
848a90dea8
array union in controllers
...
! fix issue when handling parameter with string type, add according test
2025-05-19 12:21:45 +02:00
Chris Reichel
2b30ec1c9b
array union in controllers
...
- remove needless class_exists call
2025-05-19 11:53:30 +02:00
Chris Reichel
d29998c564
array union in controllers
...
o cleanup, changelog
2025-04-10 10:39:29 +02:00
Chris Reichel
a67bfc1274
array union in controllers
...
! fix yii\web\Controller::bindActionParams behaviour for union types
o some refactoring in the process
2025-04-10 10:34:06 +02:00
Alexander Makarov
f96c2c5ef4
Add accidentally removed phpdoc
2024-07-12 16:29:14 +03:00
Alexander Makarov
52e4a3e645
release version 2.0.50
2024-05-30 20:23:31 +03:00
Wilmer Arambula
af705d9eb2
Fix ci lint.
2024-05-28 11:54:31 -04:00
Bashir Anakobe
f2ea9be242
Update deprecated isArray() method in Controller.php ( #20156 )
2024-05-16 13:16:33 +03:00
Razvan Grigore
e2a167028b
Upgrade to PSR12 coding standard ( #20121 )
2024-03-19 17:21:27 +03:00
Bizley
80a18ad6ba
Fix #18859 : Fix yii\web\Controller::bindInjectedParams() to not throw error when argument of ReflectionUnionType type is passed
2023-05-31 21:30:45 +03:00
Alexander Makarov
c9f491b4f7
release version 2.0.48.1
2023-05-24 23:04:02 +04:00
Alex
25eed6fe1c
Fix phpdoc for yii\web\Controller ( #19619 )
2022-10-12 08:41:20 +02:00
Alexander Makarov
22614a5b1f
release version 2.0.46
2022-08-19 01:18:45 +03:00
Bizley
161526cd41
HTTPS everywhere ( #19503 )
2022-08-03 12:32:18 +03:00
Brandon Kelly
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
Bizley
ae82b58d85
Fix #18909 : Fix bug with binding default action parameters for controllers
2021-10-19 01:01:46 +03:00
Bizley
ea60fba0ae
Fix yii\base\Controller::bindInjectedParams() to not throw error when argument of ReflectionUnionType type is passed ( #18869 )
2021-09-06 20:16:14 +02:00
Pigo
14a581562a
Fix #18566 : Throw the original exception when yii\web\Controller::bindInjectedParams() catches HttpException
2021-03-23 21:38:52 +03:00
Bizley
d610853fdf
Fix #18450 : Allow empty string to be passed as a nullable typed argument to a controller's action
2021-03-02 14:24:17 +03:00
Alexander Makarov
835971c6f6
Fix Controller phpdoc annotations
2020-11-02 13:13:11 +03:00
Sergei Predvoditelev
306171b582
Add phpdoc for properties "request" and "response" in web and console controllers ( #18361 )
2020-11-01 17:38:32 +03:00
Alex
1d7baabab5
Fix #18297 : Replace usage of deprecated ReflectionParameter::isArray() method in PHP8
2020-09-22 00:26:37 +03:00
Alexander Makarov
dab7a6c317
Update phpdoc
2020-07-20 02:44:55 +03:00
Brandon Kelly
fc4f449e21
Fix #18083 : Add Controller::$request and $response
2020-06-14 21:19:27 +03:00
Sam
4ea484ca68
Fix #17722 : Add action injection support
2020-06-12 10:06:18 +03:00
Alex
4b6d3c0290
Fix #17929 : Actions can now have bool typed params bound
2020-03-24 18:44:43 +03:00
Alexander Makarov
69b1966b4a
PHP 7.4 fixes
...
- Fix `Model::activeAttributes()` to access array offset on value of non-string
- Fix incorrect decoding of default binary value for PostgreSQL
- Fix incorrect type-casting of reflection type to string
2019-12-10 15:08:45 +03:00
Brandon Kelly
40797c1139
Fix #17701 : Throw BadRequetHttpException when request params can’t be bound to bool, int, and float controller action arguments
2019-12-03 12:40:56 +03:00
Carsten Brandt
c82aedb86d
add a comment to explain why Url::to() is called in Controller::redirect()
...
close #16887
2018-11-14 15:56:03 +01:00
Klimov Paul
65f6b59b35
@inheritdoc notation changed
2018-01-23 13:11:24 +02:00
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
2017-08-21 01:58:49 +03:00
Alexander Makarov
d38908fc13
Fixed #14469 : updated RFC links
2017-07-17 16:21:49 +03:00
micro-maureen
8eabff0698
#13975 : make documentation of current behaviour more clear [skip ci]
2017-04-16 00:55:35 +03:00
Nikolay Oleynikov
323568c2e9
Remove trailing spaces from sources and tests ( #13621 ) [skip ci]
2017-02-19 17:34:22 +03:00
Alexander Makarov
eab3489ec7
Reverted #13393 : Removed redundant call to yii\helpers\Url::to() in yii\web\Controller::redirect() (reverted from commit e5d169beb8)
2017-01-24 13:09:57 +03:00
Vladimir Kuprienko
e5d169beb8
Fixes #13393 : Removed redundant call to yii\helpers\Url::to() in yii\web\Controller::redirect()
2017-01-22 11:56:52 +03:00
Carsten Brandt
081ee7c5b1
Implemented shortcut methods for returning JSON and XML ( #13101 )
...
fixes #13036
2016-12-01 10:33:49 +01:00
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed boolean to bool and integer to int in phpdoc
2016-11-07 02:51:39 +03:00
Boudewijn Vahrmeijer
32f4dc8997
Fixes #5385 : links created from classes to corresponding guide articles ( #12920 )
2016-11-04 18:55:14 +03:00
Carsten Brandt
79a4241fff
fixed rest controller PHPdoc
...
fixes #11215
2016-03-28 16:00:16 +02:00
Carsten Brandt
42b8569846
Revert DI injection via controller action method signature
...
reverts b7020065c and related commits.
reverts implementation of #9476
For reasons, see discussion https://github.com/yiisoft/yii2/issues/9476#issuecomment-179749039
2016-02-06 18:40:50 +01:00
kidol
4bc2eb7945
Fixes controller DI
2015-10-12 15:52:19 +02:00
jeicd
0407407b76
fix coding style to follow PSR-2
2015-10-05 13:58:47 +06:00