Merge pull request #611 from kloining/2.x

Fix conflicting namespace with facade
This commit is contained in:
rennokki 2020-11-16 08:27:06 +02:00 committed by GitHub
commit b9ec590a4f
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\ShowDashboard;
use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\ShowStatistics; use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\ShowStatistics;
use BeyondCode\LaravelWebSockets\Dashboard\Http\Middleware\Authorize as AuthorizeDashboard; use BeyondCode\LaravelWebSockets\Dashboard\Http\Middleware\Authorize as AuthorizeDashboard;
use BeyondCode\LaravelWebSockets\Queue\AsyncRedisConnector;
use BeyondCode\LaravelWebSockets\Server\Router; use BeyondCode\LaravelWebSockets\Server\Router;
use Illuminate\Support\Facades\Gate; use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Facades\Queue; use Illuminate\Support\Facades\Queue;
@ -68,7 +69,7 @@ class WebSocketsServiceProvider extends ServiceProvider
protected function registerAsyncRedisQueueDriver() protected function registerAsyncRedisQueueDriver()
{ {
Queue::extend('async-redis', function () { Queue::extend('async-redis', function () {
return new Queue\AsyncRedisConnector($this->app['redis']); return new AsyncRedisConnector($this->app['redis']);
}); });
} }