From 8d7baace67da35ac3a30f595b591c57497299ef7 Mon Sep 17 00:00:00 2001 From: Gabriel Anhaia Date: Tue, 23 Jun 2020 08:49:17 -0300 Subject: [PATCH] refactor: Rename package namespaces --- composer.json | 2 +- src/Adapter/Redis/KeyHelper.php | 4 ++-- src/Adapter/Redis/RedisCircuitBreaker.php | 10 +++++----- src/CircuitBreaker.php | 8 ++++---- src/CircuitState.php | 4 ++-- src/Contract/CircuitBreakerAdapter.php | 6 +++--- src/Exception/AdapterException.php | 4 ++-- src/Exception/CircuitException.php | 6 +++--- tests/Unit/Adapter/Redis/KeyHelperTest.php | 2 +- tests/Unit/Adapter/Redis/RedisCircuitBreakerTest.php | 8 ++++---- 10 files changed, 27 insertions(+), 27 deletions(-) diff --git a/composer.json b/composer.json index 38d0b2f..e0a33ea 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ ], "autoload": { "psr-4": { - "GabrielAnhaia\\LaravelCircuitBreaker\\": "src/" + "GabrielAnhaia\\PhpCircuitBreaker\\": "src/" } }, "autoload-dev": { diff --git a/src/Adapter/Redis/KeyHelper.php b/src/Adapter/Redis/KeyHelper.php index 56ca640..c6d3651 100644 --- a/src/Adapter/Redis/KeyHelper.php +++ b/src/Adapter/Redis/KeyHelper.php @@ -1,12 +1,12 @@ > */ diff --git a/src/Adapter/Redis/RedisCircuitBreaker.php b/src/Adapter/Redis/RedisCircuitBreaker.php index 64567af..13063cd 100644 --- a/src/Adapter/Redis/RedisCircuitBreaker.php +++ b/src/Adapter/Redis/RedisCircuitBreaker.php @@ -1,16 +1,16 @@ */ diff --git a/src/CircuitBreaker.php b/src/CircuitBreaker.php index 6314ad0..a24a332 100644 --- a/src/CircuitBreaker.php +++ b/src/CircuitBreaker.php @@ -1,14 +1,14 @@ */ diff --git a/src/CircuitState.php b/src/CircuitState.php index 8bf5848..6bf6977 100644 --- a/src/CircuitState.php +++ b/src/CircuitState.php @@ -1,13 +1,13 @@ * diff --git a/src/Contract/CircuitBreakerAdapter.php b/src/Contract/CircuitBreakerAdapter.php index dd65158..8828a41 100644 --- a/src/Contract/CircuitBreakerAdapter.php +++ b/src/Contract/CircuitBreakerAdapter.php @@ -1,13 +1,13 @@ */ diff --git a/src/Exception/AdapterException.php b/src/Exception/AdapterException.php index a8bbfc8..f1a8f22 100644 --- a/src/Exception/AdapterException.php +++ b/src/Exception/AdapterException.php @@ -1,14 +1,14 @@ */ diff --git a/src/Exception/CircuitException.php b/src/Exception/CircuitException.php index 199dee0..a2300a7 100644 --- a/src/Exception/CircuitException.php +++ b/src/Exception/CircuitException.php @@ -1,15 +1,15 @@ */ diff --git a/tests/Unit/Adapter/Redis/KeyHelperTest.php b/tests/Unit/Adapter/Redis/KeyHelperTest.php index 1152ac2..44e3760 100644 --- a/tests/Unit/Adapter/Redis/KeyHelperTest.php +++ b/tests/Unit/Adapter/Redis/KeyHelperTest.php @@ -3,7 +3,7 @@ namespace Tests\Unit\Adapter\Redis; -use GabrielAnhaia\LaravelCircuitBreaker\Adapter\Redis\KeyHelper; +use GabrielAnhaia\PhpCircuitBreaker\Adapter\Redis\KeyHelper; use Tests\TestCase; /** diff --git a/tests/Unit/Adapter/Redis/RedisCircuitBreakerTest.php b/tests/Unit/Adapter/Redis/RedisCircuitBreakerTest.php index ed63407..7214c7b 100644 --- a/tests/Unit/Adapter/Redis/RedisCircuitBreakerTest.php +++ b/tests/Unit/Adapter/Redis/RedisCircuitBreakerTest.php @@ -2,10 +2,10 @@ namespace Tests\Unit\Adapter\Redis; -use GabrielAnhaia\LaravelCircuitBreaker\Adapter\Redis\KeyHelper; -use GabrielAnhaia\LaravelCircuitBreaker\Adapter\Redis\RedisCircuitBreaker; -use GabrielAnhaia\LaravelCircuitBreaker\CircuitState; -use GabrielAnhaia\LaravelCircuitBreaker\Exception\AdapterException; +use GabrielAnhaia\PhpCircuitBreaker\Adapter\Redis\KeyHelper; +use GabrielAnhaia\PhpCircuitBreaker\Adapter\Redis\RedisCircuitBreaker; +use GabrielAnhaia\PhpCircuitBreaker\CircuitState; +use GabrielAnhaia\PhpCircuitBreaker\Exception\AdapterException; use Tests\TestCase; /**