We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#1615
1 parent 7553362 commit 11f9a98Copy full SHA for 11f9a98
src/HorizonServiceProvider.php
@@ -7,7 +7,6 @@
7
use Illuminate\Queue\QueueManager;
8
use Illuminate\Support\Facades\Route;
9
use Illuminate\Support\ServiceProvider;
10
-use InvalidArgumentException;
11
use Laravel\Horizon\Connectors\RedisConnector;
12
13
class HorizonServiceProvider extends ServiceProvider
@@ -160,15 +159,7 @@ protected function configure()
160
159
__DIR__.'/../config/horizon.php', 'horizon'
161
);
162
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);
+ Horizon::use(config('horizon.use', 'default'));
172
}
173
174
/**
0 commit comments