138 Commits

Author SHA1 Message Date
c634b27c49 Merge branch 'master' into sync-to-master-6 2025-07-09 17:45:38 -04:00
52f28ee2ec Fix #20433: Added PHPStan/Psalm annotations for some controllers methods: beforeAction, afterAction and bindActionParams 2025-07-08 11:33:57 +03:00
c95d7c81ea Fix #20427: Remove PHP_VERSION_ID and PHP_MAJOR_VERSION checks from console Controller class 2025-06-27 11:52:09 +03:00
97a4d711ec Merge branch 'master' into sync-master-2052. 2025-04-26 19:03:07 -04:00
5abe83e323 Fix #20247: Support for variadic console controller action methods 2024-08-19 08:30:57 +03:00
f96c2c5ef4 Add accidentally removed phpdoc 2024-07-12 16:29:14 +03: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
2d98c9d511 Remove deprecated constant Controller::class. 2023-09-21 11:00:42 -03:00
3cebbdad2e Fix #19853: Added support for default value for \yii\helpers\Console::select() 2023-06-09 19:36:21 +03:00
c9f491b4f7 release version 2.0.48.1 2023-05-24 23:04:02 +04:00
473ead8e46 Optimize: simplified regexp (#19541) 2022-09-06 09:42:58 +03:00
22614a5b1f release version 2.0.46 2022-08-19 01:18:45 +03:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
4c1cae3d6d Improve reflection param/return types in console\Controller (#19431) 2022-06-17 20:21:44 +03:00
655786b7ed release version 2.0.44 2021-12-30 10:50:56 +03:00
766cf701e5 Fix #19031: Fix displaying console help for parameters with declared types 2021-12-01 15:11:19 +03:00
d52c1237ca Update Controller phpdoc (#19052) 2021-11-30 17:12:53 +03:00
ae82b58d85 Fix #18909: Fix bug with binding default action parameters for controllers 2021-10-19 01:01:46 +03:00
4e5c95f8f1 Fix PhpDoc of yii\console\Controller::stderr() (#18885) 2021-09-18 21:32:16 +03:00
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
a3b7c65622 Fix #18479: Fix invalid argument type for preg_split in \yii\console\Controller 2021-01-13 17:30:05 +03:00
e77fee2482 Fix phpdoc types 2020-11-24 17:45:01 +03:00
9ed1b4c94a Add inheritdoc to generate proper docblock in API docs 2020-11-18 11:25:42 +03:00
ccb14ff667 release version 2.0.39 2020-11-10 13:58:35 +03:00
835971c6f6 Fix Controller phpdoc annotations 2020-11-02 13:13:11 +03:00
306171b582 Add phpdoc for properties "request" and "response" in web and console controllers (#18361) 2020-11-01 17:38:32 +03:00
ed1c087784 Fix #18317: Additional PHP 8 compatibility fixes
Co-authored-by: Bizley <pawel@positive.codes>
2020-10-23 12:42:44 +03:00
1d7baabab5 Fix #18297: Replace usage of deprecated ReflectionParameter::isArray() method in PHP8 2020-09-22 00:26:37 +03:00
dab7a6c317 Update phpdoc 2020-07-20 02:44:55 +03:00
4fa7d4ee48 Fix #18170: Fix regression in passing extra console command arguments to the action 2020-07-15 15:23:47 +03:00
38f038175f Adjust changelog, correct phpdoc, minor code style fixes 2020-07-07 15:00:16 +03:00
5c3ee63316 Fix #15202: Add optional param --silent-exit-on-exception in yii\console\Controller 2020-06-23 13:34:09 +03:00
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
dc54137788 Fix #17852: Documented yii\console\Controller::stdout() additional parameters (#18076) 2020-06-05 00:18:36 +03:00
e7e72e2ff6 Fix #15526: Show valid aliases and options on invalid input in console application 2019-09-18 01:33:43 +03:00
2b9374558b Fix #17395: Fixed issues with actions that contain underscores in their names 2019-07-08 13:46:43 +03:00
cd8a9c47d7 Fixed kebab-name console command parameters 2018-02-18 23:32:50 +03:00
af83e59406 Fixes #14355: Added ability to pass an empty array as a parameter in console command 2018-01-10 02:51:41 +04:00
0948109a19 Fixes #15221: Console improvements 2017-11-26 14:43:05 +08: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
1501c659ac Add empty lines before return statements. (#14682) [skip ci] 2017-08-21 01:58:49 +03:00
2f9f15bf92 Fixes #14188: Add constants and function for sysexits(3) to ConsoleHelper 2017-07-15 23:26:15 +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
Sam
9459eaa277 Fixes #10372: Fixed console controller including complex typed arguments in help 2017-03-15 15:47:21 +03:00
59801958fe example corrected (#13555) 2017-02-10 23:33:15 +01:00
7c98000391 Update Controller.php 2017-01-07 21:15:30 +01:00
e705519c5a Fixes #13071: Help option for commands was not working in modules 2016-11-27 16:14:08 +03:00