Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 2bc6fbb

Browse files
authored
Fix conflicting namespace with facade
Queue is already aliased as the facade Queue, which makes it look for Illuminate\Support\Facades\Queue\AsyncRedisConnector
1 parent fb0c980 commit 2bc6fbb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/WebSocketsServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\ShowDashboard;
1010
use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\ShowStatistics;
1111
use BeyondCode\LaravelWebSockets\Dashboard\Http\Middleware\Authorize as AuthorizeDashboard;
12+
use BeyondCode\LaravelWebSockets\Queue\AsyncRedisConnector;
1213
use BeyondCode\LaravelWebSockets\Server\Router;
1314
use Illuminate\Support\Facades\Gate;
1415
use Illuminate\Support\Facades\Queue;
@@ -68,7 +69,7 @@ public function register()
6869
protected function registerAsyncRedisQueueDriver()
6970
{
7071
Queue::extend('async-redis', function () {
71-
return new Queue\AsyncRedisConnector($this->app['redis']);
72+
return new AsyncRedisConnector($this->app['redis']);
7273
});
7374
}
7475

0 commit comments

Comments
 (0)