@@ -33,3 +33,45 @@ services:
3333 class : Symfony\Component\HttpClient\Retry\GenericRetryStrategy
3434 arguments :
3535 - [0, 404, 423, 425, 429, 500, 502, 503, 504, 507, 510]
36+
37+
38+ # Register different APIs as services
39+
40+ Github\Api\Issue :
41+ factory : ['@Github\Client', api]
42+ arguments : [issue]
43+
44+ Github\Api\Issue\Comments :
45+ factory : ['@Github\Api\Issue', comments]
46+ calls :
47+ - ['setPerPage', [100]]
48+
49+ Github\Api\Issue\Labels :
50+ factory : ['@Github\Api\Issue', labels]
51+ calls :
52+ - ['setPerPage', [100]]
53+
54+ Github\Api\Issue\Milestones :
55+ factory : ['@Github\Api\Issue', milestones]
56+
57+ Github\Api\Issue\Timeline :
58+ factory : ['@Github\Api\Issue', timeline]
59+ calls :
60+ - [configure]
61+
62+ Github\Api\PullRequest :
63+ factory : ['@Github\Client', api]
64+ arguments : [pullRequest]
65+
66+ Github\Api\PullRequest\Review :
67+ factory : ['@Github\Api\PullRequest', reviews]
68+
69+ Github\Api\Repo :
70+ factory : ['@Github\Client', api]
71+ arguments : [repo]
72+
73+ Github\Api\Search :
74+ factory : ['@Github\Client', api]
75+ arguments : [search]
76+ calls :
77+ - ['setPerPage', [100]]
0 commit comments