Fix conflicting namespace with facade

Queue is already aliased as the facade Queue, which makes it look for Illuminate\Support\Facades\Queue\AsyncRedisConnector
This commit is contained in:
Kristian Løining 2020-11-15 22:38:10 +01:00 committed by GitHub
parent fb0c980acb
commit 2bc6fbbf5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\SendMessage;
use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\ShowDashboard;
use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\ShowStatistics;
use BeyondCode\LaravelWebSockets\Dashboard\Http\Middleware\Authorize as AuthorizeDashboard;
use BeyondCode\LaravelWebSockets\Queue\AsyncRedisConnector;
use BeyondCode\LaravelWebSockets\Server\Router;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Facades\Queue;
@ -68,7 +69,7 @@ class WebSocketsServiceProvider extends ServiceProvider
protected function registerAsyncRedisQueueDriver()
{
Queue::extend('async-redis', function () {
return new Queue\AsyncRedisConnector($this->app['redis']);
return new AsyncRedisConnector($this->app['redis']);
});
}