Skip to content

Commit

Permalink
Feature: Add publishes method for the config file
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielanhaia committed Jul 7, 2020
1 parent 6193372 commit f9f8f6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Providers/CircuitBreakerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ class CircuitBreakerServiceProvider extends ServiceProvider
public function register()
{
$this->mergeConfigFrom(
__DIR__ . '../../config/circuit_breaker.php', 'circuit_breaker'
__DIR__ . '/../../config/circuit_breaker.php', 'circuit_breaker'
);

$this->publishes([
__DIR__ . '../../config/circuit_breaker.php' => config_path('circuit_breaker.php'),
__DIR__ . '/../../config/circuit_breaker.php' => config_path('circuit_breaker.php'),
]);

$this->app->bind(CircuitBreakerAdapter::class, RedisCircuitBreaker::class);
Expand Down

0 comments on commit f9f8f6c

Please sign in to comment.