File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
src/Illuminate/Broadcasting Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 155
155
"phpunit/phpunit" : " Required to use assertions and run tests (^9.5.8)." ,
156
156
"predis/predis" : " Required to use the predis connector (^1.1.9)." ,
157
157
"psr/http-message" : " Required to allow Storage::put to accept a StreamInterface (^1.0)." ,
158
- "pusher/pusher-php-server" : " Required to use the Pusher broadcast driver (^5.0|^ 6.0|^7.0)." ,
158
+ "pusher/pusher-php-server" : " Required to use the Pusher broadcast driver (^6.0|^7.0)." ,
159
159
"symfony/amazon-mailer" : " Required to enable support for the SES mail transport (^6.0)." ,
160
160
"symfony/cache" : " Required to PSR-6 cache bridge (^6.0)." ,
161
161
"symfony/filesystem" : " Required to enable support for relative symbolic links (^6.0)." ,
Original file line number Diff line number Diff line change 4
4
5
5
use Ably \AblyRest ;
6
6
use Closure ;
7
+ use GuzzleHttp \Client as GuzzleClient ;
7
8
use Illuminate \Broadcasting \Broadcasters \AblyBroadcaster ;
8
9
use Illuminate \Broadcasting \Broadcasters \LogBroadcaster ;
9
10
use Illuminate \Broadcasting \Broadcasters \NullBroadcaster ;
@@ -214,8 +215,13 @@ protected function callCustomCreator(array $config)
214
215
protected function createPusherDriver (array $ config )
215
216
{
216
217
$ pusher = new Pusher (
217
- $ config ['key ' ], $ config ['secret ' ],
218
- $ config ['app_id ' ], $ config ['options ' ] ?? []
218
+ $ config ['key ' ],
219
+ $ config ['secret ' ],
220
+ $ config ['app_id ' ],
221
+ $ config ['options ' ] ?? [],
222
+ isset ($ config ['client_options ' ]) && ! empty ($ config ['client_options ' ])
223
+ ? new GuzzleClient ($ config ['client_options ' ])
224
+ : null ,
219
225
);
220
226
221
227
if ($ config ['log ' ] ?? false ) {
Original file line number Diff line number Diff line change 34
34
}
35
35
},
36
36
"suggest" : {
37
- "pusher/pusher-php-server" : " Required to use the Pusher broadcast driver (^5.0|^ 6.0|^7.0) )."
37
+ "pusher/pusher-php-server" : " Required to use the Pusher broadcast driver (^6.0|^7.0)."
38
38
},
39
39
"config" : {
40
40
"sort-packages" : true
You can’t perform that action at this time.
0 commit comments