From 7be6fef675c792f607c48ff3ff3a29b27d074ae3 Mon Sep 17 00:00:00 2001 From: "evgeny.iva" Date: Mon, 27 Mar 2023 13:13:43 +0300 Subject: [PATCH] init --- README.md | 1 + src/Integration/Laravel/TableSyncServiceProvider.php | 2 +- src/Rabbit/ConnectionContainer.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6e3a43c..d788831 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ ```shell composer require umbrellio/php-table-sync +php artisan vendor:publish --tag=config-table-sync ``` ## Usage diff --git a/src/Integration/Laravel/TableSyncServiceProvider.php b/src/Integration/Laravel/TableSyncServiceProvider.php index 607d82f..b24ea6a 100644 --- a/src/Integration/Laravel/TableSyncServiceProvider.php +++ b/src/Integration/Laravel/TableSyncServiceProvider.php @@ -35,7 +35,7 @@ public function boot(): void $this->publishes([ $config => base_path('config/table_sync.php'), - ], 'config'); + ], 'config-table-sync'); } public function configureChannel(): void diff --git a/src/Rabbit/ConnectionContainer.php b/src/Rabbit/ConnectionContainer.php index bc85dc2..08e304a 100644 --- a/src/Rabbit/ConnectionContainer.php +++ b/src/Rabbit/ConnectionContainer.php @@ -12,7 +12,7 @@ class ConnectionContainer { private mixed $waitBeforeReconnectMicroseconds = 1000000; - private ?AbstractConnection $connection; + private ?AbstractConnection $connection = null; public function __construct( private readonly string $host,