-
Notifications
You must be signed in to change notification settings - Fork 1
/
applenews.services.yml
55 lines (55 loc) · 2.02 KB
/
applenews.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
services:
plugin.manager.applenews_component_type:
class: Drupal\applenews\Plugin\ApplenewsComponentTypeManager
parent: default_plugin_manager
serializer.applenews.content_entity:
class: Drupal\applenews\Normalizer\ApplenewsContentEntityNormalizer
arguments: ['@entity_type.manager']
tags:
- { name: normalizer, priority: 10 }
serializer.applenews.text.component:
class: Drupal\applenews\Normalizer\ApplenewsTextComponentNormalizer
arguments: ['@plugin.manager.applenews_component_type']
tags:
- { name: normalizer, priority: 10 }
serializer.applenews.image.component:
class: Drupal\applenews\Normalizer\ApplenewsImageComponentNormalizer
arguments: ['@plugin.manager.applenews_component_type']
tags:
- { name: normalizer, priority: 10 }
serializer.applenews.nested.component:
class: Drupal\applenews\Normalizer\ApplenewsNestedComponentNormalizer
arguments: ['@plugin.manager.applenews_component_type']
tags:
- { name: normalizer, priority: 10 }
serializer.applenews.field_list:
class: Drupal\applenews\Normalizer\ApplenewsFieldItemListNormalizer
tags:
- { name: normalizer, priority: 10 }
serializer.applenews.field_item:
class: Drupal\applenews\Normalizer\ApplenewsFieldItemNormalizer
tags:
- { name: normalizer, priority: 10 }
logger.channel.applenews:
class: Drupal\Core\Logger\LoggerChannel
factory: logger.factory:get
arguments: ['applenews']
applenews.manager:
class: Drupal\applenews\ApplenewsManager
arguments: [
'@entity_type.manager',
'@entity_field.manager',
'@config.factory',
'@string_translation',
'@serializer',
'@applenews.publisher',
'@logger.channel.applenews',
'@messenger',
'@module_handler',
]
applenews.publisher:
class: Drupal\applenews\Publisher
arguments: ['@config.factory']
applenews.preview_builder:
class: Drupal\applenews\ApplenewsPreviewBuilder
arguments: ['@config.factory', '@file_system']