rename class
This commit is contained in:
parent
933cf2c538
commit
154368bb49
|
|
@ -4,7 +4,7 @@ namespace BeyondCode\LaravelWebSockets\Facades;
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Facade;
|
use Illuminate\Support\Facades\Facade;
|
||||||
|
|
||||||
/** @see \BeyondCode\LaravelWebSockets\Statistics\Logging\Logger */
|
/** @see \BeyondCode\LaravelWebSockets\Statistics\Logging\StatisticsLogger */
|
||||||
class StatisticsLogger extends Facade
|
class StatisticsLogger extends Facade
|
||||||
{
|
{
|
||||||
protected static function getFacadeAccessor()
|
protected static function getFacadeAccessor()
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ use BeyondCode\LaravelWebSockets\WebSockets\Channels\ChannelManager;
|
||||||
use Illuminate\Support\Collection;
|
use Illuminate\Support\Collection;
|
||||||
use Ratchet\ConnectionInterface;
|
use Ratchet\ConnectionInterface;
|
||||||
|
|
||||||
class Logger
|
class StatisticsLogger
|
||||||
{
|
{
|
||||||
/** @var Statistic[] */
|
/** @var Statistic[] */
|
||||||
protected $statistics = [];
|
protected $statistics = [];
|
||||||
|
|
@ -8,7 +8,7 @@ use BeyondCode\LaravelWebSockets\Dashboard\Http\Controllers\ShowDashboard;
|
||||||
use BeyondCode\LaravelWebSockets\Dashboard\Http\Middleware\Authorize;
|
use BeyondCode\LaravelWebSockets\Dashboard\Http\Middleware\Authorize;
|
||||||
use BeyondCode\LaravelWebSockets\Server\Router;
|
use BeyondCode\LaravelWebSockets\Server\Router;
|
||||||
use BeyondCode\LaravelWebSockets\Statistics\Http\Controllers\WebsocketStatisticsEntriesController;
|
use BeyondCode\LaravelWebSockets\Statistics\Http\Controllers\WebsocketStatisticsEntriesController;
|
||||||
use BeyondCode\LaravelWebSockets\Statistics\Logging\Logger;
|
use BeyondCode\LaravelWebSockets\Statistics\Logging\StatisticsLogger;
|
||||||
use Illuminate\Support\Facades\Gate;
|
use Illuminate\Support\Facades\Gate;
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
use BeyondCode\LaravelWebSockets\Apps\AppProvider;
|
use BeyondCode\LaravelWebSockets\Apps\AppProvider;
|
||||||
|
|
@ -53,7 +53,7 @@ class WebSocketsServiceProvider extends ServiceProvider
|
||||||
});
|
});
|
||||||
|
|
||||||
$this->app->singleton('websockets.statisticslogger', function() {
|
$this->app->singleton('websockets.statisticslogger', function() {
|
||||||
return new Logger(app(ChannelManager::class));
|
return new StatisticsLogger(app(ChannelManager::class));
|
||||||
});
|
});
|
||||||
|
|
||||||
$this->app->singleton(AppProvider::class, function() {
|
$this->app->singleton(AppProvider::class, function() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue