|
1 | 1 | services: |
2 | | - ibexa.core.mvc.serializer: |
3 | | - class: Symfony\Component\Serializer\Serializer |
4 | | - arguments: |
5 | | - $normalizers: |
6 | | - - '@ibexa.core.mvc.serializer.normalizer.array_denormalizer' |
7 | | - - '@Ibexa\Core\MVC\Symfony\Component\Serializer\SiteAccessNormalizer' |
8 | | - - '@Ibexa\Core\MVC\Symfony\Component\Serializer\MatcherDenormalizer' |
9 | | - - '@Ibexa\Core\MVC\Symfony\Component\Serializer\CompoundMatcherNormalizer' |
10 | | - - '@Ibexa\Core\MVC\Symfony\Component\Serializer\HostElementNormalizer' |
11 | | - - '@Ibexa\Core\MVC\Symfony\Component\Serializer\MapNormalizer' |
12 | | - - '@Ibexa\Core\MVC\Symfony\Component\Serializer\URITextNormalizer' |
13 | | - - '@Ibexa\Core\MVC\Symfony\Component\Serializer\HostTextNormalizer' |
14 | | - - '@Ibexa\Core\MVC\Symfony\Component\Serializer\RegexNormalizer' |
15 | | - - '@Ibexa\Core\MVC\Symfony\Component\Serializer\URIElementNormalizer' |
16 | | - - '@Ibexa\Core\MVC\Symfony\Component\Serializer\SimplifiedRequestNormalizer' |
17 | | - - '@ibexa.core.mvc.serializer.normalizer.json_serializable_normalizer' |
18 | | - - '@ibexa.core.mvc.serializer.normalizer.property_normalizer' |
19 | | - $encoders: |
20 | | - - '@ibexa.core.mvc.serializer.json_encoder' |
| 2 | + Ibexa\Bundle\Core\Fragment\SiteAccessSerializerInterface: |
| 3 | + alias: Ibexa\Bundle\Core\Fragment\SiteAccessSerializer |
| 4 | + |
21 | 5 |
|
22 | 6 | Ibexa\Bundle\Core\Fragment\SiteAccessSerializer: |
23 | 7 | arguments: |
24 | 8 | $serializer: '@ibexa.core.mvc.serializer' |
25 | 9 |
|
26 | | - Ibexa\Bundle\Core\Fragment\SiteAccessSerializerInterface: |
27 | | - alias: Ibexa\Bundle\Core\Fragment\SiteAccessSerializer |
| 10 | + ibexa.core.mvc.serializer.normalizer.array_denormalizer: |
| 11 | + class: Symfony\Component\Serializer\Normalizer\ArrayDenormalizer |
| 12 | + tags: |
| 13 | + - { name: 'ibexa.core.serializer.normalizer', priority: 1300 } |
28 | 14 |
|
29 | | - ibexa.core.mvc.serializer.json_encoder: |
30 | | - class: Symfony\Component\Serializer\Encoder\JsonEncoder |
| 15 | + Ibexa\Core\MVC\Symfony\Component\Serializer\SiteAccessNormalizer: |
| 16 | + tags: |
| 17 | + - { name: 'ibexa.core.serializer.normalizer', priority: 1200 } |
31 | 18 |
|
32 | 19 | Ibexa\Core\MVC\Symfony\Component\Serializer\MatcherDenormalizer: |
33 | 20 | arguments: |
34 | 21 | $registry: '@Ibexa\Bundle\Core\SiteAccess\SiteAccessMatcherRegistryInterface' |
| 22 | + tags: |
| 23 | + - { name: 'ibexa.core.serializer.normalizer', priority: 1100 } |
35 | 24 |
|
36 | | - Ibexa\Core\MVC\Symfony\Component\Serializer\SiteAccessNormalizer: ~ |
| 25 | + Ibexa\Core\MVC\Symfony\Component\Serializer\CompoundMatcherNormalizer: |
| 26 | + tags: |
| 27 | + - { name: 'ibexa.core.serializer.normalizer', priority: 1000 } |
37 | 28 |
|
38 | | - Ibexa\Core\MVC\Symfony\Component\Serializer\HostElementNormalizer: ~ |
| 29 | + Ibexa\Core\MVC\Symfony\Component\Serializer\HostElementNormalizer: |
| 30 | + tags: |
| 31 | + - { name: 'ibexa.core.serializer.normalizer', priority: 900 } |
39 | 32 |
|
40 | | - Ibexa\Core\MVC\Symfony\Component\Serializer\MapNormalizer: ~ |
| 33 | + Ibexa\Core\MVC\Symfony\Component\Serializer\MapNormalizer: |
| 34 | + tags: |
| 35 | + - { name: 'ibexa.core.serializer.normalizer', priority: 800 } |
41 | 36 |
|
42 | | - Ibexa\Core\MVC\Symfony\Component\Serializer\URITextNormalizer: ~ |
| 37 | + Ibexa\Core\MVC\Symfony\Component\Serializer\URITextNormalizer: |
| 38 | + tags: |
| 39 | + - { name: 'ibexa.core.serializer.normalizer', priority: 700 } |
43 | 40 |
|
44 | | - Ibexa\Core\MVC\Symfony\Component\Serializer\HostTextNormalizer: ~ |
| 41 | + Ibexa\Core\MVC\Symfony\Component\Serializer\HostTextNormalizer: |
| 42 | + tags: |
| 43 | + - { name: 'ibexa.core.serializer.normalizer', priority: 600 } |
45 | 44 |
|
46 | | - Ibexa\Core\MVC\Symfony\Component\Serializer\RegexNormalizer: ~ |
| 45 | + Ibexa\Core\MVC\Symfony\Component\Serializer\RegexNormalizer: |
| 46 | + tags: |
| 47 | + - { name: 'ibexa.core.serializer.normalizer', priority: 500 } |
47 | 48 |
|
48 | | - Ibexa\Core\MVC\Symfony\Component\Serializer\URIElementNormalizer: ~ |
| 49 | + Ibexa\Core\MVC\Symfony\Component\Serializer\URIElementNormalizer: |
| 50 | + tags: |
| 51 | + - { name: 'ibexa.core.serializer.normalizer', priority: 400 } |
49 | 52 |
|
50 | | - Ibexa\Core\MVC\Symfony\Component\Serializer\SimplifiedRequestNormalizer: ~ |
| 53 | + Ibexa\Core\MVC\Symfony\Component\Serializer\SimplifiedRequestNormalizer: |
| 54 | + tags: |
| 55 | + - { name: 'ibexa.core.serializer.normalizer', priority: 300 } |
51 | 56 |
|
52 | 57 | ibexa.core.mvc.serializer.normalizer.json_serializable_normalizer: |
53 | 58 | class: Symfony\Component\Serializer\Normalizer\JsonSerializableNormalizer |
| 59 | + tags: |
| 60 | + - { name: 'ibexa.core.serializer.normalizer', priority: 200 } |
54 | 61 |
|
55 | 62 | ibexa.core.mvc.serializer.normalizer.property_normalizer: |
56 | 63 | class: Symfony\Component\Serializer\Normalizer\PropertyNormalizer |
| 64 | + tags: |
| 65 | + - { name: 'ibexa.core.serializer.normalizer', priority: 100 } |
57 | 66 |
|
58 | | - ibexa.core.mvc.serializer.normalizer.array_denormalizer: |
59 | | - class: Symfony\Component\Serializer\Normalizer\ArrayDenormalizer |
| 67 | + ibexa.core.mvc.serializer.json_encoder: |
| 68 | + class: Symfony\Component\Serializer\Encoder\JsonEncoder |
| 69 | + tags: |
| 70 | + - { name: 'ibexa.core.serializer.encoder', priority: 100 } |
| 71 | + |
| 72 | + Ibexa\Bundle\Core\Serializer\SerializerFactory: |
| 73 | + class: Ibexa\Bundle\Core\Serializer\SerializerFactory |
| 74 | + arguments: |
| 75 | + - !tagged_iterator 'ibexa.core.serializer.normalizer' |
| 76 | + - !tagged_iterator 'ibexa.core.serializer.encoder' |
| 77 | + |
| 78 | + ibexa.core.mvc.serializer: |
| 79 | + # Warning: Do NOT enable autoconfigure for Serializer and Normalizer services. |
| 80 | + # They will be tagged with "serializer.normalizer" tag and injected to main app serializer service if done so. |
| 81 | + class: Symfony\Component\Serializer\Serializer |
| 82 | + factory: [ '@Ibexa\Bundle\Core\Serializer\SerializerFactory', 'create' ] |
0 commit comments