src/Console/Commands/StartServer.php 1 location
|
@@ 105-111 (lines=7) @@
|
102 |
|
*/ |
103 |
|
protected function configureManagers() |
104 |
|
{ |
105 |
|
$this->laravel->singleton(ChannelManager::class, function () { |
106 |
|
$mode = config('websockets.replication.mode', 'local'); |
107 |
|
|
108 |
|
$class = config("websockets.replication.modes.{$mode}.channel_manager"); |
109 |
|
|
110 |
|
return new $class($this->loop); |
111 |
|
}); |
112 |
|
} |
113 |
|
|
114 |
|
/** |
src/WebSocketsServiceProvider.php 1 location
|
@@ 70-76 (lines=7) @@
|
67 |
|
return new $class; |
68 |
|
}); |
69 |
|
|
70 |
|
$this->app->singleton(StatisticsCollector::class, function () { |
71 |
|
$replicationMode = config('websockets.replication.mode', 'local'); |
72 |
|
|
73 |
|
$class = config("websockets.replication.modes.{$replicationMode}.collector"); |
74 |
|
|
75 |
|
return new $class; |
76 |
|
}); |
77 |
|
} |
78 |
|
|
79 |
|
/** |