@@ -50,31 +50,30 @@ class NewTwitchApi
50
50
private $ videosApi ;
51
51
private $ webhooksApi ;
52
52
private $ webhooksSubscriptionApi ;
53
- private $ requestGenerator ;
54
53
55
54
public function __construct (Client $ helixGuzzleClient , string $ clientId , string $ clientSecret , Client $ authGuzzleClient = null )
56
55
{
57
- $ this -> requestGenerator = new RequestGenerator ();
56
+ $ requestGenerator = new RequestGenerator ();
58
57
$ this ->oauthApi = new OauthApi ($ clientId , $ clientSecret , $ authGuzzleClient );
59
- $ this ->analyticsApi = new AnalyticsApi ($ helixGuzzleClient , $ this -> requestGenerator );
60
- $ this ->bitsApi = new BitsApi ($ helixGuzzleClient , $ this -> requestGenerator );
61
- $ this ->channelPointsApi = new ChannelPointsApi ($ helixGuzzleClient , $ this -> requestGenerator );
62
- $ this ->channelsApi = new ChannelsApi ($ helixGuzzleClient , $ this -> requestGenerator );
63
- $ this ->clipsApi = new ClipsApi ($ helixGuzzleClient , $ this -> requestGenerator );
64
- $ this ->entitlementsApi = new EntitlementsApi ($ helixGuzzleClient , $ this -> requestGenerator );
65
- $ this ->gamesApi = new GamesApi ($ helixGuzzleClient , $ this -> requestGenerator );
66
- $ this ->hypeTrainApi = new HypeTrainApi ($ helixGuzzleClient , $ this -> requestGenerator );
67
- $ this ->moderationApi = new ModerationApi ($ helixGuzzleClient , $ this -> requestGenerator );
68
- $ this ->pollsApi = new PollsApi ($ helixGuzzleClient , $ this -> requestGenerator );
69
- $ this ->predictionsApi = new PredictionsApi ($ helixGuzzleClient , $ this -> requestGenerator );
70
- $ this ->searchApi = new SearchApi ($ helixGuzzleClient , $ this -> requestGenerator );
71
- $ this ->streamsApi = new StreamsApi ($ helixGuzzleClient , $ this -> requestGenerator );
72
- $ this ->subscriptionsApi = new SubscriptionsApi ($ helixGuzzleClient , $ this -> requestGenerator );
73
- $ this ->tagsApi = new TagsApi ($ helixGuzzleClient , $ this -> requestGenerator );
74
- $ this ->teamsApi = new TeamsApi ($ helixGuzzleClient , $ this -> requestGenerator );
75
- $ this ->usersApi = new UsersApi ($ helixGuzzleClient , $ this -> requestGenerator );
76
- $ this ->videosApi = new VideosApi ($ helixGuzzleClient , $ this -> requestGenerator );
77
- $ this ->webhooksApi = new WebhooksApi ($ helixGuzzleClient , $ this -> requestGenerator );
58
+ $ this ->analyticsApi = new AnalyticsApi ($ helixGuzzleClient , $ requestGenerator );
59
+ $ this ->bitsApi = new BitsApi ($ helixGuzzleClient , $ requestGenerator );
60
+ $ this ->channelPointsApi = new ChannelPointsApi ($ helixGuzzleClient , $ requestGenerator );
61
+ $ this ->channelsApi = new ChannelsApi ($ helixGuzzleClient , $ requestGenerator );
62
+ $ this ->clipsApi = new ClipsApi ($ helixGuzzleClient , $ requestGenerator );
63
+ $ this ->entitlementsApi = new EntitlementsApi ($ helixGuzzleClient , $ requestGenerator );
64
+ $ this ->gamesApi = new GamesApi ($ helixGuzzleClient , $ requestGenerator );
65
+ $ this ->hypeTrainApi = new HypeTrainApi ($ helixGuzzleClient , $ requestGenerator );
66
+ $ this ->moderationApi = new ModerationApi ($ helixGuzzleClient , $ requestGenerator );
67
+ $ this ->pollsApi = new PollsApi ($ helixGuzzleClient , $ requestGenerator );
68
+ $ this ->predictionsApi = new PredictionsApi ($ helixGuzzleClient , $ requestGenerator );
69
+ $ this ->searchApi = new SearchApi ($ helixGuzzleClient , $ requestGenerator );
70
+ $ this ->streamsApi = new StreamsApi ($ helixGuzzleClient , $ requestGenerator );
71
+ $ this ->subscriptionsApi = new SubscriptionsApi ($ helixGuzzleClient , $ requestGenerator );
72
+ $ this ->tagsApi = new TagsApi ($ helixGuzzleClient , $ requestGenerator );
73
+ $ this ->teamsApi = new TeamsApi ($ helixGuzzleClient , $ requestGenerator );
74
+ $ this ->usersApi = new UsersApi ($ helixGuzzleClient , $ requestGenerator );
75
+ $ this ->videosApi = new VideosApi ($ helixGuzzleClient , $ requestGenerator );
76
+ $ this ->webhooksApi = new WebhooksApi ($ helixGuzzleClient , $ requestGenerator );
78
77
$ this ->webhooksSubscriptionApi = new WebhooksSubscriptionApi ($ clientId , $ clientSecret , $ helixGuzzleClient );
79
78
}
80
79
0 commit comments