forked from apigee/apigee-edge-drupal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apigee_edge.services.yml
215 lines (171 loc) · 9.43 KB
/
apigee_edge.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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
services:
logger.channel.apigee_edge:
parent: logger.channel_base
arguments: ['apigee_edge']
cache.apigee_edge_entity:
class: Drupal\Core\Cache\CacheBackendInterface
tags:
- { name: cache.bin }
factory: cache_factory:get
arguments: [apigee_edge_entity]
apigee_edge.cli:
class: Drupal\apigee_edge\CliService
arguments: ['@apigee_edge.apigee_edge_mgmt_cli_service']
apigee_edge.apigee_edge_mgmt_cli_service:
class: Drupal\apigee_edge\Command\Util\ApigeeEdgeManagementCliService
arguments: ['@http_client']
apigee_edge.sdk_connector:
class: Drupal\apigee_edge\SDKConnector
arguments: ['@http_client_factory', '@key.repository', '@entity_type.manager', '@config.factory', '@module_handler', '@info_parser']
apigee_edge.key_entity_form_enhancer:
class: Drupal\apigee_edge\KeyEntityFormEnhancer
arguments: ['@apigee_edge.sdk_connector', '@apigee_edge.authentication.oauth_token_storage', '@entity_type.manager', '@config.factory', '@email.validator']
calls:
- [setMessenger, ['@messenger']]
- [setStringTranslation, ['@string_translation']]
apigee_edge.controller.organization:
class: Drupal\apigee_edge\Entity\Controller\OrganizationController
arguments: ['@apigee_edge.sdk_connector']
apigee_edge.controller.developer:
class: Drupal\apigee_edge\Entity\Controller\DeveloperController
arguments: ['@apigee_edge.sdk_connector', '@apigee_edge.controller.organization', '@apigee_edge.controller.cache.developer', '@apigee_edge.controller.cache.developer_ids', '@apigee_edge.entity.controller.cache.developer_app_cache_factory', '@apigee_edge.entity.controller.cache.developer_app_name_cache_factory']
apigee_edge.controller.api_product:
class: Drupal\apigee_edge\Entity\Controller\ApiProductController
arguments: ['@apigee_edge.sdk_connector', '@apigee_edge.controller.organization', '@apigee_edge.controller.cache.api_product', '@apigee_edge.controller.cache.api_product_ids']
apigee_edge.controller.app:
class: Drupal\apigee_edge\Entity\Controller\AppController
arguments: ['@apigee_edge.sdk_connector', '@apigee_edge.controller.organization', '@apigee_edge.controller.cache.apps', '@apigee_edge.controller.cache.app_ids', '@apigee_edge.entity.controller.cache.app_cache_by_owner_factory']
apigee_edge.controller.developer_app_controller_factory:
class: Drupal\apigee_edge\Entity\Controller\DeveloperAppControllerFactory
arguments: ['@apigee_edge.sdk_connector', '@apigee_edge.controller.organization', '@apigee_edge.controller.cache.apps', '@apigee_edge.entity.controller.cache.developer_app_cache_factory', '@apigee_edge.entity.controller.cache.developer_app_name_cache_factory']
apigee_edge.controller.developer_app_credential_factory:
class: Drupal\apigee_edge\Entity\Controller\DeveloperAppCredentialControllerFactory
arguments: ['@apigee_edge.sdk_connector', '@apigee_edge.entity.controller.cache.developer_app_cache_factory', '@event_dispatcher']
apigee_edge.controller.cache.entity_cache:
class: Drupal\apigee_edge\Entity\Controller\Cache\EntityCache
arguments: ['@apigee_edge.cache.memory_cache_factory']
abstract: true
apigee_edge.controller.cache.entity_id_cache:
class: Drupal\apigee_edge\Entity\Controller\Cache\EntityIdCache
abstract: true
apigee_edge.controller.cache.api_product:
parent: apigee_edge.controller.cache.entity_cache
arguments: ['@apigee_edge.controller.cache.api_product_ids', api_product]
apigee_edge.controller.cache.api_product_ids:
parent: apigee_edge.controller.cache.entity_id_cache
apigee_edge.controller.cache.developer:
class: Drupal\apigee_edge\Entity\Controller\Cache\DeveloperCache
parent: apigee_edge.controller.cache.entity_cache
arguments: ['@apigee_edge.controller.cache.developer_ids', developer]
apigee_edge.controller.cache.developer_companies:
class: Drupal\apigee_edge\Entity\DeveloperCompaniesCache
arguments: ['@apigee_edge.cache.memory_cache_factory']
apigee_edge.controller.cache.developer_ids:
class: Drupal\apigee_edge\Entity\Controller\Cache\DeveloperIdCache
parent: apigee_edge.controller.cache.entity_id_cache
apigee_edge.controller.cache.apps:
parent: apigee_edge.controller.cache.entity_cache
class: Drupal\apigee_edge\Entity\Controller\Cache\AppCache
arguments: ['@apigee_edge.controller.cache.app_ids', 'app']
apigee_edge.controller.cache.app_ids:
parent: apigee_edge.controller.cache.entity_id_cache
class: Drupal\apigee_edge\Entity\Controller\Cache\AppIdCache
apigee_edge.entity.controller.cache.app_name_cache_by_owner_factory:
class: Drupal\apigee_edge\Entity\Controller\Cache\AppNameCacheByOwnerFactory
apigee_edge.entity.controller.cache.app_cache_by_owner_factory:
class: Drupal\apigee_edge\Entity\Controller\Cache\AppCacheByOwnerFactory
arguments: ['@apigee_edge.controller.cache.apps', '@apigee_edge.entity.controller.cache.app_name_cache_by_owner_factory']
apigee_edge.entity.controller.cache.developer_app_cache_factory:
class: Drupal\apigee_edge\Entity\Controller\Cache\DeveloperAppCacheFactory
arguments: ['@apigee_edge.entity.controller.cache.app_cache_by_owner_factory', '@entity_type.manager', '@email.validator']
apigee_edge.entity.controller.cache.developer_app_name_cache_factory:
class: Drupal\apigee_edge\Entity\Controller\Cache\DeveloperAppNameCacheFactory
arguments: ['@apigee_edge.entity.controller.cache.app_name_cache_by_owner_factory', '@entity_type.manager', '@email.validator']
apigee_edge.entity.app_warnings_checker:
class: Drupal\apigee_edge\Entity\AppWarningsChecker
arguments: ['@entity_type.manager', '@datetime.time']
apigee_edge.cache.memory_cache_factory:
class: Drupal\apigee_edge\MemoryCacheFactory
apigee_edge.job_executor:
class: Drupal\apigee_edge\JobExecutor
arguments: ['@database', '@datetime.time', '@queue']
apigee_edge.exception_subscriber:
class: Drupal\apigee_edge\EventSubscriber\EdgeExceptionSubscriber
arguments:
- '@logger.channel.apigee_edge'
- '@config.factory'
- '@messenger'
- '@class_resolver'
- '@current_route_match'
- '%main_content_renderers%'
tags:
- { name: event_subscriber }
apigee_edge.event_subscriber.edge_config_translation_change_subscriber:
class: Drupal\apigee_edge\EventSubscriber\EdgeConfigTranslationChangeSubscriber
tags:
- { name: event_subscriber }
apigee_edge.event_subscriber.developer_status_warning:
class: Drupal\apigee_edge\EventSubscriber\DeveloperStatusWarningSubscriber
arguments: ['@current_user', '@current_route_match', '@entity_type.manager', '@messenger', '@string_translation']
tags:
- { name: event_subscriber }
apigee_edge.event_subscriber.api_product_entity_access_cache_reset:
class: Drupal\apigee_edge\EventSubscriber\ApiProductEntityAccessCacheReset
arguments: ['@entity_type.manager']
tags:
- { name: event_subscriber }
access_check.app_by_app_name:
class: Drupal\apigee_edge\Access\AppAccessCheckByAppName
arguments: ['@entity_type.manager']
tags:
- { name: access_check, applies_to: _app_access_check_by_app_name }
entity.query.edge:
class: Drupal\apigee_edge\Entity\Query\QueryFactory
arguments:
- '@entity_type.manager'
route_enhancer.entity.app:
class: Drupal\apigee_edge\Entity\Enhancer\AppRouteEnhancer
tags:
- { name: route_enhancer}
route_subscriber.apigee_edge.developer_app_by_name:
class: Drupal\apigee_edge\Routing\DeveloperAppByNameRouteAlterSubscriber
tags:
- { name: event_subscriber }
route_subscriber.apigee_edge.entity_field_config_list:
class: Drupal\apigee_edge\Routing\EdgeEntityFieldConfigListRouteSubscriber
arguments: ['@entity_type.manager']
tags:
- { name: event_subscriber }
apigee_edge.event_subscriber.developer_app_field_config_list_alter_event_subscriber:
class: Drupal\apigee_edge\EventSubscriber\DeveloperAppFieldConfigListAlterEventSubscriber
arguments: ['@form_builder']
tags:
- { name: event_subscriber }
paramconverter.developer_with_user:
class: Drupal\apigee_edge\ParamConverter\DeveloperWithUser
arguments: ['@entity_type.manager']
tags:
- { name: paramconverter }
paramconverter.developer_app_name:
class: Drupal\apigee_edge\ParamConverter\DeveloperAppNameConverter
arguments: ['@entity_type.manager', '@logger.channel.apigee_edge']
tags:
- { name: paramconverter }
paramconverter.apigee_edge_load_unchanged_entity:
class: Drupal\apigee_edge\ParamConverter\ApigeeEdgeLoadUnchangedEntity
arguments: ['@entity_type.manager']
tags:
# Use a higher priority than EntityConverter, see the class for details.
- { name: paramconverter, priority: 10 }
plugin.manager.apigee_field_storage_format:
class: Drupal\apigee_edge\Plugin\FieldStorageFormatManager
parent: default_plugin_manager
apigee_edge.converter.field_attribute:
class: Drupal\apigee_edge\FieldAttributeConverter
arguments: ['@entity_field.manager', '@plugin.manager.apigee_field_storage_format', '@config.factory']
apigee_edge.converter.user_developer:
class: Drupal\apigee_edge\UserDeveloperConverter
arguments: ['@config.factory', '@entity_type.manager', '@plugin.manager.apigee_field_storage_format', '@apigee_edge.converter.field_attribute']
apigee_edge.authentication.oauth_token_storage:
class: Drupal\apigee_edge\OauthTokenFileStorage
arguments: ['@config.factory', '@file_system', '@logger.channel.apigee_edge']