-
Notifications
You must be signed in to change notification settings - Fork 5
/
commoncli.services.yml
137 lines (131 loc) · 4.78 KB
/
commoncli.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
services:
event_dispatcher:
class: Symfony\Component\EventDispatcher\EventDispatcher
public: true
file_system:
class: Symfony\Component\Filesystem\Filesystem
public: true
common_console_application:
class: Symfony\Component\Console\Application
factory: ['EclipseGc\CommonConsole\IoFactory', 'createApplication']
arguments: ['@event_dispatcher']
public: true
console.input:
class: Symfony\Component\Console\Input\ArgvInput
public: true
console.output:
class: Symfony\Component\Console\Output\ConsoleOutput
factory: ['EclipseGc\CommonConsole\IoFactory', 'createOutput']
arguments: ['@event_dispatcher', '@console.input']
public: true
console.logger:
class: Symfony\Component\Console\Logger\ConsoleLogger
public: true
arguments: ['@console.output']
question.finder:
class: EclipseGc\CommonConsole\QuestionFactory
arguments: ['@service_container']
process.runner:
class: EclipseGc\CommonConsole\ProcessRunner
arguments: ['@console.input']
platform.storage:
class: EclipseGc\CommonConsole\Platform\PlatformStorage
arguments: ['@file_system', '@event_dispatcher', '@platform.factory', '@console.logger']
platform.factory:
class: EclipseGc\CommonConsole\Platform\PlatformFactory
arguments: ['@event_dispatcher', '@process.runner', '@service_container']
config.storage:
class: EclipseGc\CommonConsole\Config\ConfigStorage
arguments: ['@file_system']
public: true
alias.finder:
class: EclipseGc\CommonConsole\EventSubscriber\ConsoleCommand\AliasFinder
arguments: ['@event_dispatcher']
tags:
- { name: kernel.event_subscriber }
platform.bootstrapper:
class: EclipseGc\CommonConsole\EventSubscriber\ConsoleCommand\Bootstrapper
tags:
- { name: kernel.event_subscriber }
finder.default:
class: EclipseGc\CommonConsole\EventSubscriber\FindAlias\DefaultFinder
arguments: ['@platform.storage']
tags:
- { name: kernel.event_subscriber }
# Input definition.
input.definition.alias:
class: EclipseGc\CommonConsole\EventSubscriber\InputDefinition\AliasArgument
tags:
- { name: kernel.event_subscriber }
input.definition.uri:
class: EclipseGc\CommonConsole\EventSubscriber\InputDefinition\UriOption
tags:
- { name: kernel.event_subscriber }
input.definition.bare:
class: EclipseGc\CommonConsole\EventSubscriber\InputDefinition\BareOutputOption
tags:
- { name: kernel.event_subscriber }
input.definition.group:
class: EclipseGc\CommonConsole\EventSubscriber\InputDefinition\GroupOption
tags:
- { name: kernel.event_subscriber }
input.definition.timeout:
class: EclipseGc\CommonConsole\EventSubscriber\InputDefinition\TimeoutOption
tags:
- { name: kernel.event_subscriber }
# Output formatting.
formatting.output.default:
class: EclipseGc\CommonConsole\EventSubscriber\OutputFormatterStyle\DefaultOutputFormatterStyle
tags:
- { name: kernel.event_subscriber }
# Platform definitions.
platform.defaults:
class: EclipseGc\CommonConsole\EventSubscriber\Platform\PlatformSubscriberDefaults
tags:
- { name: kernel.event_subscriber }
# Platform Bootstraps
bootstrap.drupal:
class: EclipseGc\CommonConsole\EventSubscriber\Bootstrap\Drupal
arguments: ['%autoloader%']
tags:
- { name: kernel.event_subscriber }
# Add Platform to Command expectation validation
validate.platform.any:
class: EclipseGc\CommonConsole\EventSubscriber\AddPlatform\AnyPlatform
tags:
- { name: kernel.event_subscriber }
validate.platform.id:
class: EclipseGc\CommonConsole\EventSubscriber\AddPlatform\PlatformIdMatch
tags:
- { name: kernel.event_subscriber }
validate.platform.instanceof:
class: EclipseGc\CommonConsole\EventSubscriber\AddPlatform\PlatformIsInstanceOf
tags:
- { name: kernel.event_subscriber }
# Commands
command.platform.create:
class: EclipseGc\CommonConsole\Command\PlatformCreate
arguments: ['@event_dispatcher', '@platform.storage', '@platform.factory', '@question.finder']
tags:
- { name: common_console_command }
command.platform.describe:
class: EclipseGc\CommonConsole\Command\PlatformDescribe
arguments: ['@platform.storage']
tags:
- { name: common_console_command }
command.platform.list:
class: EclipseGc\CommonConsole\Command\PlatformList
arguments: ['@platform.storage']
tags:
- { name: common_console_command }
command.platform.delete:
class: EclipseGc\CommonConsole\Command\PlatformDelete
arguments: ['@platform.storage']
tags:
- { name: common_console_command }
command.platform.sites:
class: EclipseGc\CommonConsole\Command\PlatformSites
public: true
arguments: ['@event_dispatcher']
tags:
- { name: common_console_command }