This repository has been archived by the owner on Jan 17, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 46
/
services.yaml
172 lines (117 loc) · 6.91 KB
/
services.yaml
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
services:
_defaults:
autowire: true
autoconfigure: true
public: false
K911\Swoole\Component\AtomicCounter:
factory: ['K911\Swoole\Component\AtomicCounter', fromZero]
K911\Swoole\Component\ExceptionArrayTransformer:
K911\Swoole\Server\RequestHandler\ExceptionHandler\ProductionExceptionHandler:
K911\Swoole\Server\RequestHandler\ExceptionHandler\JsonExceptionHandler:
K911\Swoole\Server\RequestHandler\ExceptionRequestHandler:
arguments:
$decorated: '@K911\Swoole\Bridge\Symfony\HttpKernel\HttpKernelRequestHandler'
K911\Swoole\Bridge\Symfony\HttpFoundation\SetRequestRuntimeConfiguration:
K911\Swoole\Bridge\Symfony\HttpFoundation\ResponseProcessorInjectorInterface: '@K911\Swoole\Bridge\Symfony\HttpFoundation\ResponseProcessorInjector'
K911\Swoole\Bridge\Symfony\HttpFoundation\ResponseProcessorInjector:
arguments:
$responseProcessor: '@response_processor.headers_and_cookies.streamed'
K911\Swoole\Bridge\Symfony\HttpFoundation\RequestFactoryInterface:
class: K911\Swoole\Bridge\Symfony\HttpFoundation\RequestFactory
K911\Swoole\Bridge\Symfony\HttpFoundation\ResponseProcessorInterface:
class: K911\Swoole\Bridge\Symfony\HttpFoundation\ResponseProcessor
K911\Swoole\Bridge\Symfony\HttpFoundation\NoOpStreamedResponseProcessor:
decorates: K911\Swoole\Bridge\Symfony\HttpFoundation\ResponseProcessorInterface
decoration_priority: -100
arguments:
- '@K911\Swoole\Bridge\Symfony\HttpFoundation\NoOpStreamedResponseProcessor.inner'
response_processor.headers_and_cookies.default:
class: K911\Swoole\Bridge\Symfony\HttpFoundation\ResponseHeadersAndStatusProcessor
decorates: K911\Swoole\Bridge\Symfony\HttpFoundation\ResponseProcessorInterface
arguments:
- '@response_processor.headers_and_cookies.default.inner'
K911\Swoole\Bridge\Symfony\HttpFoundation\StreamedResponseProcessor:
response_processor.headers_and_cookies.streamed:
class: K911\Swoole\Bridge\Symfony\HttpFoundation\ResponseHeadersAndStatusProcessor
decorates: K911\Swoole\Bridge\Symfony\HttpFoundation\StreamedResponseProcessor
arguments:
- '@response_processor.headers_and_cookies.streamed.inner'
K911\Swoole\Server\RequestHandler\RequestHandlerInterface:
alias: K911\Swoole\Server\RequestHandler\ExceptionRequestHandler
K911\Swoole\Bridge\Symfony\HttpKernel\HttpKernelRequestHandler:
K911\Swoole\Server\RequestHandler\LimitedRequestHandler:
K911\Swoole\Server\LifecycleHandler\SigIntHandler:
K911\Swoole\Server\Runtime\CallableBootManagerFactory:
K911\Swoole\Server\Session\SwooleTableStorage:
factory: ['K911\Swoole\Server\Session\SwooleTableStorage', 'fromDefaults']
K911\Swoole\Server\Session\StorageInterface:
alias: K911\Swoole\Server\Session\SwooleTableStorage
K911\Swoole\Bridge\Symfony\HttpFoundation\Session\SwooleSessionStorage:
K911\Swoole\Server\Runtime\BootableInterface:
class: K911\Swoole\Server\Runtime\CallableBootManager
factory: ['@K911\Swoole\Server\Runtime\CallableBootManagerFactory', make]
arguments: [!tagged 'swoole_bundle.bootable_service']
autoconfigure: false
K911\Swoole\Server\HttpServer:
K911\Swoole\Server\WorkerHandler\WorkerStartHandlerInterface:
class: K911\Swoole\Server\WorkerHandler\NoOpWorkerStartHandler
K911\Swoole\Server\LifecycleHandler\ServerStartHandlerInterface:
class: K911\Swoole\Server\LifecycleHandler\NoOpServerStartHandler
K911\Swoole\Server\LifecycleHandler\ServerShutdownHandlerInterface:
class: K911\Swoole\Server\LifecycleHandler\NoOpServerShutdownHandler
K911\Swoole\Server\LifecycleHandler\ServerManagerStartHandlerInterface:
class: K911\Swoole\Server\LifecycleHandler\NoOpServerManagerStartHandler
K911\Swoole\Server\LifecycleHandler\ServerManagerStopHandlerInterface:
class: K911\Swoole\Server\LifecycleHandler\NoOpServerManagerStopHandler
K911\Swoole\Server\TaskHandler\TaskHandlerInterface:
class: K911\Swoole\Server\TaskHandler\NoOpTaskHandler
K911\Swoole\Server\TaskHandler\TaskFinishedHandlerInterface:
class: K911\Swoole\Server\TaskHandler\NoOpTaskFinishedHandler
K911\Swoole\Server\Api\ApiServerClientFactory:
K911\Swoole\Server\Api\ApiServerClient:
factory: K911\Swoole\Server\Api\ApiServerClientFactory:newClient
K911\Swoole\Server\Api\ApiServerInterface:
class: K911\Swoole\Server\Api\ApiServer
# Could be helpful for projects that uses/have included proxy-manager
# lazy: true
# tags:
# - { name: proxy, interface: K911\Swoole\Server\Api\ApiServerInterface }
K911\Swoole\Server\Config\Sockets:
K911\Swoole\Server\HttpServerConfiguration:
K911\Swoole\Server\Configurator\WithHttpServerConfiguration:
K911\Swoole\Server\Configurator\WithServerShutdownHandler:
K911\Swoole\Server\Configurator\WithServerStartHandler:
K911\Swoole\Server\Configurator\WithServerManagerStartHandler:
K911\Swoole\Server\Configurator\WithServerManagerStopHandler:
K911\Swoole\Server\Configurator\WithWorkerStartHandler:
K911\Swoole\Server\Configurator\WithTaskHandler:
K911\Swoole\Server\Configurator\WithTaskFinishedHandler:
K911\Swoole\Server\Configurator\CallableChainConfiguratorFactory:
K911\Swoole\Server\Api\WithApiServerConfiguration:
arguments:
$requestHandler: '@swoole_bundle.server.api_server.request_handler'
K911\Swoole\Server\Api\ApiServerRequestHandler:
swoole_bundle.server.api_server.request_handler:
class: K911\Swoole\Server\RequestHandler\ExceptionRequestHandler
arguments:
$decorated: '@K911\Swoole\Server\Api\ApiServerRequestHandler'
swoole_bundle.server.http_server.configurator_collection:
class: K911\Swoole\Component\GeneratedCollection
arguments: [!tagged 'swoole_bundle.server_configurator']
K911\Swoole\Server\Configurator\ConfiguratorInterface:
alias: swoole_bundle.server.http_server.configurator
swoole_bundle.session.table_storage:
alias: K911\Swoole\Bridge\Symfony\HttpFoundation\Session\SwooleSessionStorage
swoole_bundle.server.http_server.configurator.with_request_handler:
class: K911\Swoole\Server\Configurator\WithRequestHandler
autoconfigure: false
swoole_bundle.server.http_server.configurator.with_limited_request_handler:
class: K911\Swoole\Server\Configurator\WithRequestHandler
autoconfigure: false
arguments:
$requestHandler: '@K911\Swoole\Server\RequestHandler\LimitedRequestHandler'
swoole_bundle.server.http_server.configurator.with_sigint_handler:
class: K911\Swoole\Server\Configurator\WithServerStartHandler
autoconfigure: false
arguments:
$handler: '@K911\Swoole\Server\LifecycleHandler\SigIntHandler'