-
Notifications
You must be signed in to change notification settings - Fork 16
/
fb_instant_articles.services.yml
54 lines (45 loc) · 2.13 KB
/
fb_instant_articles.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
services:
serializer.fb_instant_articles.fbia.encoder:
class: Drupal\fb_instant_articles\Encoder\InstantArticleEncoder
tags:
- { name: encoder, priority: 10, format: 'fbia' }
serializer.fb_instant_articles.fbia.content_entity:
class: Drupal\fb_instant_articles\Normalizer\InstantArticleContentEntityNormalizer
arguments: ['@config.factory', '@entity_field.manager', '@entity_type.manager', '@info_parser', '@module_handler', '@language_manager']
tags:
- { name: normalizer, priority: 10 }
serializer.fb_instant_articles.fbia.field_item_list:
class: Drupal\fb_instant_articles\Normalizer\FieldItemListNormalizer
arguments: ['@renderer', '@fb_instant_articles.transformer', '@config.factory', '@logger.channel.fbia']
tags:
- { name: normalizer, priority: 10 }
serializer.fb_instant_articles.fbia_rss.encoder:
class: Drupal\fb_instant_articles\Encoder\InstantArticleRssEncoder
arguments: ['@request_stack', '@config.factory']
tags:
- { name: encoder, priority: 10, format: 'fbia_rss' }
serializer.fb_instant_articles.fbia_rss.content_entity:
class: Drupal\fb_instant_articles\Normalizer\InstantArticleRssContentEntityNormalizer
arguments: ['@config.factory']
tags:
- { name: normalizer, priority: 10 }
fb_instant_articles.transformer:
class: Drupal\fb_instant_articles\Transformer
arguments: ['@fb_instant_articles.transformer_rules_manager', '@config.factory']
shared: false
fb_instant_articles.transformer_rules_manager:
class: Drupal\fb_instant_articles\TransformerRulesManager
arguments: ['@module_handler']
fb_instant_articles.drupal_client:
class: Drupal\fb_instant_articles\DrupalClient
arguments: ['@config.factory']
calls:
- [setSerializer, ['@serializer']]
- [setLogger, ['@logger.channel.fbia']]
- [setIaNormalizer, ['@serializer.fb_instant_articles.fbia.content_entity']]
factory: fb_instant_articles.drupal_client_factory:create
fb_instant_articles.drupal_client_factory:
class: Drupal\fb_instant_articles\DrupalClientFactory
logger.channel.fbia:
parent: logger.channel_base
arguments: ['fbia']