-
Notifications
You must be signed in to change notification settings - Fork 7
/
services.yml
190 lines (189 loc) · 5.46 KB
/
services.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
parameters:
db_name: ".tldb.sq3"
configurable_service_ids: []
directory: ''
# This is set in Application::checkConfig
config: []
version: ''
services:
config.processor:
class: Symfony\Component\Config\Definition\Processor
config.configuration:
class: Larowlan\Tl\Configuration\LoggerConfiguration
connection:
class: Doctrine\DBAL\Connection
factory: [Larowlan\Tl\Repository\ConnectionFactory, createConnection]
arguments: ['%directory%', '%db_name%']
schema:
class: Larowlan\Tl\Repository\Schema
http_client:
class: GuzzleHttp\Client
cache:
class: Doctrine\Common\Cache\FilesystemCache
factory: [Larowlan\Tl\CacheFactory, create]
repository:
class: Larowlan\Tl\Repository\DbRepository
arguments: ["@connection"]
connector:
class: Larowlan\Tl\Connector\Manager
arguments: ['@container', '@cache', '%config%', '%version%', '@reporter']
tags:
- { name: configurable }
reporter:
class: Larowlan\Tl\Reporter\Manager
arguments: ['@container', '@cache', '%config%', '%version%']
tags:
- { name: configurable }
reporter.toggl:
class: Larowlan\Tl\Reporter\Toggl
arguments: ['%config%', '@cache', '%version%']
tags:
- { name: reporter }
connector.redmine:
class: Larowlan\Tl\Connector\RedmineConnector
arguments: ['@http_client', '@cache', '%config%', '%version%']
tags:
- { name: connector }
connector.jira:
class: Larowlan\Tl\Connector\JiraConnector
arguments: ['%config%', '@cache', '%config%', '%version%', '@http_client']
tags:
- { name: connector }
reviewer:
class: Larowlan\Tl\Reviewer
arguments: ["@connector", "@repository"]
#commands
app.command.update:
class: Larowlan\Tl\Commands\Update
tags:
- { name: command }
app.command.start:
class: Larowlan\Tl\Commands\Start
arguments: ["@connector", "@repository"]
tags:
- { name: command }
app.command.add:
class: Larowlan\Tl\Commands\Add
arguments: ["@connector", "@repository"]
tags:
- { name: command }
app.command.assigned:
class: Larowlan\Tl\Commands\Assigned
arguments: ["@connector", "@repository"]
tags:
- { name: command }
app.command.cache:
class: Larowlan\Tl\Commands\CacheClear
arguments: ["@cache"]
tags:
- { name: command }
app.command.open:
class: Larowlan\Tl\Commands\Open
arguments: ["@connector", "@repository"]
tags:
- { name: command }
app.command.visit:
class: Larowlan\Tl\Commands\Visit
arguments: ["@connector", "@repository"]
tags:
- { name: command }
app.command.alias:
class: Larowlan\Tl\Commands\Alias
arguments: ["@connector", "@repository"]
tags:
- { name: command }
app.command.edit:
class: Larowlan\Tl\Commands\Edit
arguments: ["@connector", "@repository"]
tags:
- { name: command }
app.command.comment:
class: Larowlan\Tl\Commands\Comment
arguments: ["@connector", "@repository"]
tags:
- { name: command }
app.command.tag:
class: Larowlan\Tl\Commands\Tag
arguments: ["@connector", "@repository"]
tags:
- { name: command }
app.command.tag_all:
class: Larowlan\Tl\Commands\TagAll
arguments: ["@connector", "@repository"]
tags:
- { name: command }
app.command.send:
class: Larowlan\Tl\Commands\Send
arguments: ["@connector", "@repository", "@reviewer", "@logger"]
tags:
- { name: command }
app.command.review:
class: Larowlan\Tl\Commands\Review
arguments: ["@reviewer"]
tags:
- { name: command }
app.command.total:
class: Larowlan\Tl\Commands\Total
arguments: ["@reviewer"]
tags:
- { name: command }
app.command.stop:
class: Larowlan\Tl\Commands\Stop
arguments: ["@connector", "@repository"]
tags:
- { name: command }
app.command.billable:
class: Larowlan\Tl\Commands\Billable
arguments: ["@connector", "@repository", '%config%', '%directory%']
tags:
- { name: command }
- { name: configurable }
app.command.status:
class: Larowlan\Tl\Commands\Status
arguments: ["@connector", "@repository"]
tags:
- { name: command }
app.command.continue:
class: Larowlan\Tl\Commands\Continues
arguments: ["@connector", "@repository"]
tags:
- { name: command }
app.command.bitbar:
class: Larowlan\Tl\Commands\Bitbar
arguments: ["@connector", "@repository"]
tags:
- { name: command }
app.command.install:
class: Larowlan\Tl\Commands\Install
arguments: ["@connection", '%directory%', "@schema"]
tags:
- { name: command }
app.command.configure:
class: Larowlan\Tl\Commands\Configure
arguments: ["%directory%", '%configurable_service_ids%']
tags:
- { name: command }
app.command.log:
class: Larowlan\Tl\Commands\Log
arguments: ["%directory%"]
tags:
- { name: command }
app.command.frequent:
class: Larowlan\Tl\Commands\MostFrequentlyUsed
arguments: ["@connector", "@repository"]
tags:
- { name: command }
app.command.combine:
class: Larowlan\Tl\Commands\Combine
arguments: ["@connector", "@repository"]
tags:
- { name: command }
app.command.delete:
class: Larowlan\Tl\Commands\Delete
arguments: ["@connector", "@repository"]
tags:
- { name: command }
app.command.completion:
class: Stecman\Component\Symfony\Console\BashCompletion\CompletionCommand
tags:
- { name: command }