-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhn.services.yml
More file actions
31 lines (28 loc) · 999 Bytes
/
hn.services.yml
File metadata and controls
31 lines (28 loc) · 999 Bytes
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
services:
# The encoder and service provider add the _format=hn support.
serializer.encoder.hn:
class: Drupal\hn\Encoder\HnEncoder
tags:
- name: encoder
priority: 10
format: hn
# All normalizers make sure the entities are formatted in a nice way.
serializer.normalizer.hn.typed_data:
class: Drupal\hn\Normalizer\TypedDataNormalizer
tags:
- name: normalizer
priority: 20
serializer.normalizer.hn.link:
class: Drupal\hn\Normalizer\LinkNormalizer
tags:
- name: normalizer
priority: 20s
hn.response:
class: Drupal\hn\HnResponseService
arguments: ['@serializer', '@current_user', '@config.factory', '@cache.default', '@event_dispatcher', '@hn.path_resolver']
plugin.manager.hn_entity_manager_plugin:
class: Drupal\hn\Plugin\HnEntityManagerPluginManager
parent: default_plugin_manager
hn.path_resolver:
class: Drupal\hn\Plugin\HnPathResolverManager
parent: default_plugin_manager