-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* - Change: drop support for < 8.2 - Change: moved to enums, promoted properties - Added: logger for more socket info - Added: slave_uuid support - Change: config no longer static - Chore: typos in README/code - Chore: replace/remove old urls from code - Chore: changed variables to underscore - Added: support caching_sha2_password - Change: BinLogServerInfo static calls removed also added method getServerInfo to MySQLReplicationFactory
- Loading branch information
Showing
88 changed files
with
2,124 additions
and
2,831 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ composer.phar | |
composer.lock | ||
.php_cs.cache | ||
/example/profiler.php | ||
.idea/ | ||
.idea/ | ||
.cache/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
services: | ||
replication-test-mysql-percona: | ||
container_name: replication-test-mysql-percona | ||
hostname: replication-test-mysql-percona | ||
image: mysql:8.0 | ||
platform: linux/amd64 | ||
command: [ | ||
'--character-set-server=utf8mb4', | ||
'--collation-server=utf8mb4_unicode_ci', | ||
# '--default-authentication-plugin=caching_sha2_password', | ||
#'--default-authentication-plugin=mysql_native_password', | ||
'--log_bin=binlog', | ||
'--max_binlog_size=8M', | ||
'--binlog_format=row', | ||
'--server-id=1' | ||
] | ||
environment: | ||
- MYSQL_ROOT_PASSWORD=root | ||
- MYSQL_DATABASE=mysqlreplication_test | ||
ports: | ||
- "3306:3306/tcp" | ||
restart: unless-stopped |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use PhpCsFixer\Fixer\ArrayNotation\ReturnToYieldFromFixer; | ||
use PhpCsFixer\Fixer\ArrayNotation\YieldFromArrayToYieldsFixer; | ||
use PhpCsFixer\Fixer\Casing\NativeTypeDeclarationCasingFixer; | ||
use PhpCsFixer\Fixer\FunctionNotation\PhpdocToParamTypeFixer; | ||
use PhpCsFixer\Fixer\FunctionNotation\PhpdocToPropertyTypeFixer; | ||
use PhpCsFixer\Fixer\FunctionNotation\PhpdocToReturnTypeFixer; | ||
use PhpCsFixer\Fixer\Phpdoc\PhpdocAddMissingParamAnnotationFixer; | ||
use PhpCsFixer\Fixer\Whitespace\TypeDeclarationSpacesFixer; | ||
use PhpCsFixerCustomFixers\Fixer\NoLeadingSlashInGlobalNamespaceFixer; | ||
use PhpCsFixerCustomFixers\Fixer\PhpdocNoSuperfluousParamFixer; | ||
use PhpCsFixerCustomFixers\Fixer\PromotedConstructorPropertyFixer; | ||
use Symplify\EasyCodingStandard\Config\ECSConfig; | ||
use Symplify\EasyCodingStandard\ValueObject\Set\SetList; | ||
|
||
return static function (ECSConfig $ecsConfig): void { | ||
$ecsConfig->parallel(); | ||
$ecsConfig->sets([ | ||
SetList::PSR_12, | ||
SetList::CLEAN_CODE, | ||
SetList::STRICT, | ||
SetList::ARRAY, | ||
SetList::PHPUNIT, | ||
SetList::DOCTRINE_ANNOTATIONS, | ||
SetList::COMMENTS, | ||
SetList::SYMPLIFY, | ||
SetList::CONTROL_STRUCTURES, | ||
]); | ||
|
||
$ecsConfig->rules([ | ||
NativeTypeDeclarationCasingFixer::class, | ||
ReturnToYieldFromFixer::class, | ||
TypeDeclarationSpacesFixer::class, | ||
YieldFromArrayToYieldsFixer::class, | ||
PhpdocToPropertyTypeFixer::class, | ||
PhpdocToParamTypeFixer::class, | ||
PhpdocToReturnTypeFixer::class, | ||
PromotedConstructorPropertyFixer::class, | ||
NoLeadingSlashInGlobalNamespaceFixer::class, | ||
PhpdocNoSuperfluousParamFixer::class, | ||
PhpdocAddMissingParamAnnotationFixer::class, | ||
]); | ||
|
||
$ecsConfig->fileExtensions(['php']); | ||
$ecsConfig->cacheDirectory('.cache/ecs'); | ||
$ecsConfig->paths([__DIR__ . '/src', __DIR__ . '/tests', __DIR__ . '/example',]); | ||
}; |
Oops, something went wrong.