Fix tests failing on older versions of Laravel

This commit is contained in:
Francis Lavoie 2019-09-03 12:15:29 -04:00
parent 5979f63af6
commit e3c0cea77c
No known key found for this signature in database
GPG Key ID: B9E0E04A76AF4692
1 changed files with 2 additions and 2 deletions

View File

@ -95,11 +95,11 @@ class WebSocketsServiceProvider extends ServiceProvider
$this->app->singleton(ChannelManager::class, function () { $this->app->singleton(ChannelManager::class, function () {
return config('websockets.channel_manager') !== null && class_exists(config('websockets.channel_manager')) return config('websockets.channel_manager') !== null && class_exists(config('websockets.channel_manager'))
? $this->app->get(config('websockets.channel_manager')) : new ArrayChannelManager(); ? $this->app->make(config('websockets.channel_manager')) : new ArrayChannelManager();
}); });
$this->app->singleton(AppProvider::class, function () { $this->app->singleton(AppProvider::class, function () {
return $this->app->get(config('websockets.app_provider')); return $this->app->make(config('websockets.app_provider'));
}); });
} }