Skip to content

Commit 11f9a98

Browse files
authored
[5.x] Revert #1615 (#1620)
* revert #1615 * fix: style-ci
1 parent 7553362 commit 11f9a98

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/HorizonServiceProvider.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Illuminate\Queue\QueueManager;
88
use Illuminate\Support\Facades\Route;
99
use Illuminate\Support\ServiceProvider;
10-
use InvalidArgumentException;
1110
use Laravel\Horizon\Connectors\RedisConnector;
1211

1312
class HorizonServiceProvider extends ServiceProvider
@@ -160,15 +159,7 @@ protected function configure()
160159
__DIR__.'/../config/horizon.php', 'horizon'
161160
);
162161

163-
$connection = config('horizon.use', 'default');
164-
165-
if ($connection === 'horizon') {
166-
throw new InvalidArgumentException(
167-
'The Redis connection name [horizon] is reserved for internal use.'
168-
);
169-
}
170-
171-
Horizon::use($connection);
162+
Horizon::use(config('horizon.use', 'default'));
172163
}
173164

174165
/**

0 commit comments

Comments
 (0)