-
Notifications
You must be signed in to change notification settings - Fork 1
/
hme.services.yml
27 lines (27 loc) · 1.01 KB
/
hme.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
services:
serializer.encoder.siren:
class: Drupal\hme\Encoder\JsonEncoder
tags:
- { name: encoder, priority: 10, format: siren_json }
hme.subscriber:
class: Drupal\hme\SirenSubscriber
tags:
- { name: event_subscriber }
serializer.normalizer.entity_reference_item.siren:
class: Drupal\hme\Normalizer\EntityReferenceItemNormalizer
arguments: ['@rest.link_manager', '@serializer.entity_resolver', '@entity.query']
tags:
- { name: normalizer, priority: 10 }
serializer.normalizer.entity.siren:
class: Drupal\hme\Normalizer\ContentEntityNormalizer
arguments: ['@rest.link_manager', '@entity.manager', '@module_handler', '@entity.query']
tags:
- { name: normalizer, priority: 10 }
serializer.normalizer.field_item.siren:
class: Drupal\hme\Normalizer\FieldItemNormalizer
tags:
- { name: normalizer, priority: 10 }
serializer.normalizer.field.siren:
class: Drupal\hme\Normalizer\FieldNormalizer
tags:
- { name: normalizer, priority: 10 }