Vladimir Reznichenko
185209957e
Fixes #15270 : Resolved potential race conditions when writing generated php-files
7 years ago
IceJOKER
8897ea7270
Fixes #15249 : Controllers in subdirectories were not visible in commands list
7 years ago
Vladimir Kuprienko
898e43d6eb
Improves readability of `yii\console\widgets\Table` widget ( #15236 )
...
* Fixes code style
* Moves magic numbers to constants
7 years ago
webleaf
aab86eb7e7
Fixes #15229 : Fixed `yii\console\widgets\Table` default value for `getScreenWidth()`, when `Console::getScreenSize()` can't determine screen size
7 years ago
Brandon Kelly
0948109a19
Fixes #15221 : Console improvements
7 years ago
Alexander Makarov
2d672b6722
release version 2.0.13
7 years ago
Alexander Makarov
1c23e6dea8
Fixed Table phpdoc example [skip ci]
7 years ago
Carsten Brandt
e311001ef5
#14543 : Adjusted implementation of migration name length limit
7 years ago
Dmitry Dorogin
614fb52c45
Fixes #14543 : Throw exception when trying to create migration longer than 255 symbols
7 years ago
Hisateru Tanaka
43ea93315f
Fixes #14929 : Additional semicolon should avoid an affection of trailing line comment when asset/compress
7 years ago
Hisateru Tanaka
6e8cc4c151
Fixes #14929 : Ensure trailing `;` on combining files with `asset` command to fix compiler failures
7 years ago
Alexander Makarov
6bde69aa96
Fixes #14016 : Fixed empty messages marked as unused in PHP and PO sources when extracted with message command when `markUnused` is `false`
7 years ago
Alexander Makarov
a1ddd8b907
Fixes #14129 : Fixed console help to properly work with tricky camelcased controller names
7 years ago
Vitaly
ab8c54f12a
Fixes #14864 : Ability to use dependencies in constructor of migrations
7 years ago
Carsten Brandt
97923ac783
ensure backwards compatibiliy with migration without $compact
...
See https://github.com/yiisoft/yii2/pull/14474#discussion_r135237472
7 years ago
Kolyunya
f866edcfba
Fix console cache controller
...
Fixed a bug in a `yii\console\controllers\CacheController` when caches
defined via a closure were not detected.
fixes #13969
close #14586
7 years ago
bscheshirwork
8987957f06
Fixes #14697 : Fixed `console\widgets\Table` rendering when there's no data supplied
7 years ago
Francis Lavoie
9588c8f5a4
Fixes #13853 : Added `yii\db\Migration::$compact` as well as `yii\console\controllers\BaseMigrateController::$compact` to allow making the migration console output more compact
7 years ago
Klimov Paul
264831cf21
`BaseMigrateController::refreshDatabase()` renamed to `truncateDatabase()`
7 years ago
Robert Korulczyk
5a8c3d537b
Enable `phpdoc_summary` rule in php-cs-fixer config ( #14675 )
...
* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc".
7 years ago
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
7 years ago
Robert Korulczyk
4d5aa9a6cf
Fix self-ignored .gitignore files.
7 years ago
Herbert Maschke
58792cdac5
Fixes #14664 : Add migrate/fresh command to truncate database and apply migrations again
7 years ago
Michaël Arnauts
e472b4e29c
Fixes #14525 : Fixed 2.0.12 regression of loading of global fixtures trough `yii fixture/load`
7 years ago
Alexander Makarov
915c78facd
Fixed ExitCode::getReason()
7 years ago
Alexander Makarov
1f26db9fb7
Applied code style fixes
7 years ago
Carsten Brandt
2f9f15bf92
Fixes #14188 : Add constants and function for sysexits(3) to `ConsoleHelper`
7 years ago
Carsten Brandt
0070b97837
allow migrate/mark to mark the history base ( #14428 )
...
fixes #7890
7 years ago
Robert Korulczyk
d2781cd232
Added configuration for headers in PHP files generated by `message/extract` command ( #14417 )
7 years ago
Robert Korulczyk
a50d9d8e3e
Enable `include` rule in php-cs-fixer ( #14418 )
7 years ago
Robert Korulczyk
fe8a0a6a2e
Enable `no_useless_else` rule in php-cs-fixer ( #14420 )
7 years ago
Daniel Gómez Pan
b0ad73e361
Fixes #11415 : Added `yii\console\widgets\Table` to draw tables in console apps
7 years ago
Elvira Sheina
cfaec11da5
Fixes #13824 : Support extracting concatenated strings in `yii message`
7 years ago
Robert Korulczyk
8d05e81bd4
Fixes #14307 : Fixed PHP warning when `yii\console\UnknownCommandException` is thrown for empty command
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
SilverFire - Dmitry Naumenko
cb53b2feec
Fixes #14081 : Added `yii\caching\CacheInterface` to make custom cache extensions adoption easier
7 years ago
Arthur Khachaturov
78ec17f13c
Fixes #14201 : `yii\console\controllers\MessageController::extractMessagesFromTokens()` is now protected
7 years ago
Nikolay Oleynikov
fdc91f351b
Improved base migration controller documentation [skip ci] ( #14253 )
7 years ago
PowerGamer1
3dc8f426d0
Fix MessageController color output on non-color termnials
...
fixes #14248
close #14249
7 years ago
Carsten Brandt
844eacba26
Update BaseMigrateController.php
...
make sure console arguments are recognized as array.
7 years ago
Carsten Brandt
6ec6f8d76c
moved include file logic to separate method
7 years ago
Carsten Brandt
5288577221
make migrationPath accept an array
7 years ago
Tobias Munk
deb1def9d3
added alias syntax support
...
fixes #13356
fixes #13359
7 years ago
Carsten Brandt
cb9462b224
Added support for specifying aliases for migrationNamespaces
...
This is used to specify pathes to migrations that do not have
namespaces.
While not directly supported by the migration command provideded by the
framework, these migrations exist in a lot of extensions because custom implementations
of migration controllers out of the framework were using this approach
to load multiple migrations from multiple paths.
Even the framework itself currently ships non-namespaced migrations:
- 17a1d91e4a/framework/rbac/migrations/m140506_102106_rbac_init.php
- 17a1d91e4a/framework/caching/migrations/m150909_153426_cache_init.php
- 17a1d91e4a/framework/log/migrations/m141106_185632_log_init.php
This change allows existing applications to adopt the new namespace-based approach
while keeping existing migrations. While it would be possible to add
namespaces to migrations in the application itself, it is not easily possible
to add namespaces to migrations that come from external sources like
extensions.
7 years ago
Carsten Brandt
4b9e48b8dc
improved docs: link term "path alias" to the guide
7 years ago
SilverFire - Dmitry Naumenko
f7c9e6b852
Enhanced FixtureController::getFixtureRelativeName()
...
Updated CHANGELOG
7 years ago
Skiba Max
51dd58cf34
Fixed #13551 : loading fixtures in subdirectories
7 years ago
lynicidn
96dae1cebc
file will not loaded
...
https://github.com/yiisoft/yii2/tree/master/framework/test
8 years ago
Alexander Makarov
70cd75c84e
Fixes #13226 : `yii cache` command now warns about the fact that it's not able to flush APC cache from console
8 years ago
Vladimir Reznichenko
6da1ec6fb2
Fixes #13845 : `mt_rand()` is not used instead of `rand()` in `yii\captcha\CaptchaAction` + minor code improvements
8 years ago