@@ -66,7 +66,7 @@ protected function configurePubSub()
66
66
return (new RedisClient ())->boot ($ this ->loop );
67
67
});
68
68
69
- app (BroadcastManager::class)->extend ('redis-pusher ' , function ($ app , array $ config ) {
69
+ $ this -> app -> get (BroadcastManager::class)->extend ('redis-pusher ' , function ($ app , array $ config ) {
70
70
$ pusher = new Pusher (
71
71
$ config ['key ' ], $ config ['secret ' ],
72
72
$ config ['app_id ' ], $ config ['options ' ] ?? []
@@ -95,11 +95,11 @@ public function register()
95
95
96
96
$ this ->app ->singleton (ChannelManager::class, function () {
97
97
return config ('websockets.channel_manager ' ) !== null && class_exists (config ('websockets.channel_manager ' ))
98
- ? app (config ('websockets.channel_manager ' )) : new ArrayChannelManager ();
98
+ ? $ this -> app -> get (config ('websockets.channel_manager ' )) : new ArrayChannelManager ();
99
99
});
100
100
101
101
$ this ->app ->singleton (AppProvider::class, function () {
102
- return app (config ('websockets.app_provider ' ));
102
+ return $ this -> app -> get (config ('websockets.app_provider ' ));
103
103
});
104
104
}
105
105
@@ -124,7 +124,7 @@ protected function registerRoutes()
124
124
protected function registerDashboardGate ()
125
125
{
126
126
Gate::define ('viewWebSocketsDashboard ' , function ($ user = null ) {
127
- return app () ->environment ('local ' );
127
+ return $ this -> app ->environment ('local ' );
128
128
});
129
129
130
130
return $ this ;
0 commit comments