Sergey Makinen
c8856ccd4e
Fix merging issues & CS
7 years ago
Carsten Brandt
f212bc6caf
ensure tablenames are not replaced in insert and update
7 years ago
Sergey Makinen
f820d2ca36
Merge branch 'master' into db-constraints
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
ab68caa867
Removed unused local var in JS test ( #14093 )
7 years ago
SilverFire - Dmitry Naumenko
cb53b2feec
Fixes #14081 : Added `yii\caching\CacheInterface` to make custom cache extensions adoption easier
7 years ago
Tigrov
2b7e8be1e8
Fixes #14192 : Fixed wrong default null value for TIMESTAMP when using PostgreSQL
7 years ago
Kolyunya
9031a115b9
Fixes #13586 : Added `$preserveNonEmptyValues` property to the `yii\behaviors\AttributeBehavior`
7 years ago
vladis84
f6b54e1ac8
Fixes #14089 : Added tests for `yii\base\Theme`
7 years ago
Alexander Makarov
b00c82c2a2
Adjusted RBAC docs to offer both migrations and command approaches [skip ci]
7 years ago
Thiago Talma
1d062100b6
Fixes #13787 : Added `yii\db\Migration::$maxSqlOutputLength` that allows limiting number of characters for outputting SQL
7 years ago
Arthur Khachaturov
78ec17f13c
Fixes #14201 : `yii\console\controllers\MessageController::extractMessagesFromTokens()` is now protected
7 years ago
Carsten Brandt
2b9f0006d5
added example for using unsupported PHP format in yii formatter
...
fixes #14278
7 years ago
Nikolay Oleynikov
fdc91f351b
Improved base migration controller documentation [skip ci] ( #14253 )
7 years ago
Bizley
deea1829db
Fixes #14264 : Fixed a bug where `yii\log\Logger::calculateTimings()` was not accepting messages with array tokens
7 years ago
Carsten Brandt
fddb34b91c
added param binding examples for update() and delete()
...
fixes #14218
7 years ago
Carsten Brandt
a3501ed831
guide: note about param binding on strings, not arrays
...
issue #14218
7 years ago
PowerGamer1
3dc8f426d0
Fix MessageController color output on non-color termnials
...
fixes #14248
close #14249
7 years ago
Carsten Brandt
b056dff031
improved formatter documentation
7 years ago
Dmitry Naumenko
cf9787ddef
Merge pull request #14256 from brandonkelly/patch-7
...
Fixed Formatter::normalizeDatetimeValue() docs
7 years ago
Dmitry Naumenko
4fdc55093f
Merge pull request #14255 from lourdas/master
...
Greek translation update.
7 years ago
Brandon Kelly
981346cb1e
Fixed Formatter::normalizeDatetimeValue() docs
...
There was a reference to `$checkTimeInfo` that was leftover from 54278fc842
7 years ago
Vasileios Lourdas
38bf88df1a
Greek translation update.
7 years ago
Carsten Brandt
d6bd627ac3
prepare for next release
7 years ago
Carsten Brandt
be658f82bf
release version 2.0.12
7 years ago
Carsten Brandt
c09a03ab8e
fixed version and missing `@since` annotation
7 years ago
Carsten Brandt
717c545d2c
moved wrong changelog entry
7 years ago
Carsten Brandt
226f524da3
skip failing HHVM test
...
see https://github.com/yiisoft/yii2/issues/14244
7 years ago
Paul Klimov
40e5702b6b
Fixes #5108 `DateValidator` resets `$timestampAttribute` value on empty attribute ( #14242 )
...
* `yii\validators\DateValidator` now resets `$timestampAttribute` value on empty validated attribute value
* array-value test at `DateValidatorTest` restored
7 years ago
Carsten Brandt
b8d5a35916
Merge pull request #14241 from cebe/migration-namespaces
...
Added support for specifying aliases for migrationNamespaces
7 years ago
Carsten Brandt
844eacba26
Update BaseMigrateController.php
...
make sure console arguments are recognized as array.
7 years ago
Paul Klimov
cd3c6404cb
Fixes #4999 : Added support for wildcards at `yii\filters\AccessRule::$controllers`
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
Paul Klimov
0beb59305c
Fixes #13058 : Fixed caught exception thrown during view file rendering produces wrong output
7 years ago
leandrogehlen
17a1d91e4a
Allows override query relation in descendant class
...
fixes #13441
close #13642
7 years ago
Carsten Brandt
6e7ea782c0
fix cloning of DB connection for sqlite in-memory db
...
fixes #14131
close #14232
7 years ago
nanodesu88
67b9a57e86
additional fix for #13501
...
close #13593
7 years ago
Carsten Brandt
3e94919592
added failing test for #13593
7 years ago
Carsten Brandt
2feb0945ca
Fixed RBAC databases tests
...
tests were reusing static DB connection instance resulting in all tests
to be run against MySQL only!
PgSQL and Sqlite tests are now failing because of the issue reported in #13501 .
7 years ago
Carsten Brandt
fa4d76223b
Merge pull request #14123 from cebe/access-rule-params
...
Alternative implementation for passing parameters to AccessRule roles
7 years ago
Carsten Brandt
a1f396c5d8
improved docs
7 years ago
Carsten Brandt
339972fb34
simplified guide example
7 years ago
Felipe Sateler
88bbd61988
Alternative implementation for passing parameters to AccessRule roles
...
fixes #8426 : `yii\filters\AccessRule` now allows passing GET or other parameters to the role checking function
replaces #8426
7 years ago
Felipe Sateler
18bb002c99
Document queryParams in the authorization guide
7 years ago
Alexander Makarov
137a936a60
Merge pull request #14215 from ihipop/feature/add_doc_for_issue_#8420 [skip ci]
...
Add doc for issue #8420
7 years ago
ihipop
7d209b4143
Adjusted text,add some adivse [skip ci]
7 years ago