File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 44
55use Aws \ApiGatewayManagementApi \ApiGatewayManagementApiClient ;
66use Aws \ApiGatewayManagementApi \Exception \ApiGatewayManagementApiException ;
7- use GuzzleHttp \Exception \ClientException ;
87
98class ConnectionRepository
109{
1110 protected ApiGatewayManagementApiClient $ apiGatewayManagementApiClient ;
11+ protected SubscriptionRepository $ subscriptionRepository ;
1212
1313 public function __construct (
14- protected SubscriptionRepository $ subscriptionRepository ,
14+ SubscriptionRepository $ subscriptionRepository ,
1515 array $ config
1616 ) {
17+ $ this ->subscriptionRepository = $ subscriptionRepository ;
18+
1719 $ this ->apiGatewayManagementApiClient = new ApiGatewayManagementApiClient (array_merge ($ config ['connection ' ], [
1820 'version ' => '2018-11-29 ' ,
1921 'endpoint ' => "https:// {$ config ['api ' ]['id ' ]}.execute-api. {$ config ['connection ' ]['region ' ]}.amazonaws.com/ {$ config ['api ' ]['stage ' ]}/ " ,
Original file line number Diff line number Diff line change 1313
1414class Handler extends WebsocketHandler
1515{
16+ protected SubscriptionRepository $ subscriptionRepository ;
17+ protected ConnectionRepository $ connectionRepository ;
18+
1619 public function __construct (
17- protected SubscriptionRepository $ subscriptionRepository ,
18- protected ConnectionRepository $ connectionRepository
20+ SubscriptionRepository $ subscriptionRepository ,
21+ ConnectionRepository $ connectionRepository
1922 ) {
2023 $ this ->subscriptionRepository = $ subscriptionRepository ;
2124 $ this ->connectionRepository = $ connectionRepository ;
You can’t perform that action at this time.
0 commit comments