52e4a3e645
release version 2.0.50
2024-05-30 20:23:31 +03:00
e2a167028b
Upgrade to PSR12 coding standard ( #20121 )
2024-03-19 17:21:27 +03:00
51208fcb99
Fix #19770 : Fix yii\mutex\MysqlMutex
keyPrefix
expression param binding
2023-02-27 14:45:33 +03:00
68b473679a
release version 2.0.47
2022-11-18 20:21:58 +04:00
381c266443
#19316 fix MysqlMutex long name ( #19614 )
...
Co-authored-by: Márton Somogyi <somogyi.marton@metrisoft.hu>
2022-10-09 20:21:09 +02:00
0b4741ea6a
MysqlMutext component fix same connection but difference database fail ( #19603 )
...
* MysqlMutext component fix same connection but difference database fail with extended keyPrefix.
* @since added to MysqlMutex#keyPrefix
Co-authored-by: Márton Somogyi <somogyi.marton@metrisoft.hu>
2022-10-06 09:06:59 +02:00
161526cd41
HTTPS everywhere ( #19503 )
2022-08-03 12:32:18 +03: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
d5a428e001
Fix some code smells ( #18696 )
2021-06-05 13:37:45 +03:00
03052621b7
Fix #18611 : Add note about isAcquired() behavior to Mutex ( #18615 )
2021-04-24 15:43:48 +03:00
38f038175f
Adjust changelog, correct phpdoc, minor code style fixes
2020-07-07 15:00:16 +03:00
6aa0ac1ed0
Fix #18151 : Added Mutex::isAcquired()
to check if lock is currently acquired
2020-07-04 00:05:00 +03:00
eb956e9c6b
primary/replica in a definitely non-breaking way ( #18106 )
2020-06-16 11:33:27 +03:00
472600ee3f
Fix #18102 : Use “primary”/“replica” terminology instead of “master”/“slave”
2020-06-14 00:12:10 +03:00
ed64d65886
release version 2.0.16
2019-01-31 00:54:16 +01:00
768d590eef
added missing @since annotations
2019-01-31 00:45:25 +01:00
1fe3d61a3b
Fixes #16838 : yii\mutex\Mutex::acquire()
no longer returns true
if lock is already acquired by the same component in the same process
2018-11-05 00:23:23 +03:00
91c96ff452
Fixes #16839
...
- Increase frequency of lock tries for `yii\mutex\FileMutex::acquireLock()` when $timeout is provided (rob006)
- Add support for `$timeout` in `yii\mutex\PgsqlMutex::acquire()`
2018-11-01 01:19:33 +03:00
c92eb7761d
Fixes #16836 : Fix yii\mutex\MysqlMutex
to handle locks with names longer than 64 character
2018-10-27 20:19:17 +03:00
0ddc3bf58c
Fixes #16603 : Added yii\mutex\FileMutex::$isWindows
for Windows file shares on Unix guest machines
2018-08-05 12:23:38 +03:00
1a74b3d4f8
[minor] SCA with Php Inspections (EA Ultimate) ( #15871 )
...
* Php Inspections (EA Ultimate): use type casting where applicable
* Php Inspections (EA Ultimate): use constants where applicable
* Php Inspections (EA Ultimate): CS
* Php Inspections (EA Ultimate): address some of one-time used variables
* Php Inspections (EA Ultimate): address some of performance-related findings
* Php Inspections (EA Ultimate): address some of performance-related findings
* Php Inspections (EA Ultimate): revert a constant usage
* Php Inspections (EA Ultimate): revert sequential assignments
* Php Inspections (EA Ultimate): build is green again
* Php Inspections (EA Ultimate): revert array_merge tweaks
* Php Inspections (EA Ultimate): revert BC-incompatible one-time used variable tweak
* Update description [skip ci]
* Php Inspections (EA Ultimate): CS
2018-03-12 01:37:19 +03:00
e6f5c46cdc
Fixes #15633 : Deprecate some things going away/changing in 2.1
...
- Deprecated `yii\base\BaseObject::className()` in favor of native PHP syntax `::class`, which does not trigger autoloading
- Deprecated XCache and Zend data cache support as caching backends
- Deprecated `yii\BaseYii::powered()` method
- Added `yii\base\InvalidArgumentException` and deprecated `yii\base\InvalidParamException`
- Added `yii\BaseYii::debug()` and deprecated `yii\BaseYii::trace()`
2018-02-11 01:48:29 +03:00
f259eadf7a
be clear about timeout in seconds in Mutex
...
fixes https://github.com/yiisoft/yii2/issues/15030
2017-10-27 09:46:11 +02:00
20302c873a
minor
2017-09-13 22:46:11 +03:00
d599568154
Merge branch 'master' into kidol-filemutex
...
Conflicts:
framework/mutex/FileMutex.php
2017-09-13 22:05:40 +03:00
1f26db9fb7
Applied code style fixes
2017-07-21 15:42:06 +03:00
445019779f
Fixes #14206 : MySqlMutex
, PgsqlMutex
and OracleMutex
now use useMaster()
to ensure lock is aquired on the same DB server
2017-07-13 09:52:38 +03:00
fe8a0a6a2e
Enable no_useless_else
rule in php-cs-fixer ( #14420 )
2017-07-10 11:26:21 +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
4b9e48b8dc
improved docs: link term "path alias" to the guide
2017-06-02 10:45:20 +02:00
924a3edf4b
Remove excessive use
statements
2017-02-15 20:14:53 +03:00
85cbe8dbaf
Fix race conditions in FileMutex
2016-12-20 15:20:01 +01:00
4aa935e69e
Fixes #12055 : Changed boolean
to bool
and integer
to int
in phpdoc
2016-11-07 02:51:39 +03:00
2716093eda
Fixes #12824 : Enabled use of yii\mutex\FileMutex
on Windows systems
2016-10-24 19:16:24 +03:00
fb72b8801f
fixed indentation and code style
2016-10-20 12:37:02 +02:00
9d882e53fe
Fixes #12431 : Fix bug when lock file was not removed after yii\mutex\FileMutex::release()
2016-09-01 23:50:05 +03:00
9d5bf60a89
Added Oracle mutex
2016-08-04 17:35:50 +03:00
6bffe761b1
Fixed Wording
2016-04-05 16:54:22 +07:00
e05f55bd13
Update PgsqlMutex.php
...
fixed `@since` annotation.
2016-04-05 04:53:52 +02:00
db1a96d876
Added tests for #8920 , used 16bit integers to avoid out of range error
2016-04-05 00:57:52 +03:00
84f37705bf
Fixes #8920 : Added yii\mutex\PgsqlMutex
which implements mutex "lock" mechanism via PgSQL locks
2016-04-05 00:56:38 +03:00
ae42a054bb
PSR-2 spaces, commas, etc
2015-06-09 00:05:06 +03:00
d341bf02b4
Fixes #6398 : Added support for specifying dependent component in terms of a configuration array for classes such as DbCache
2015-01-04 19:28:05 -05:00
bb8550886e
PHP type casting
2014-10-25 15:30:03 +03:00
3a1e0f3a5c
property codestyle framework
2014-07-30 00:21:31 +02:00
81d5dd0163
Better Windows detection
2014-07-23 16:08:44 +04:00
6578cfbdab
updated phpdoc and classmap
2014-06-25 18:24:23 +02:00
9e320dafc6
Doc comments for the 'mutex' classes extended
2014-05-29 11:43:23 +03:00
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
2014-03-23 20:51:09 +01:00
8e11ad0360
refactored code to use Instance::ensure()
2014-03-18 12:31:27 -04:00