forked from Sylius/Sylius
/
serializers.xml
133 lines (109 loc) · 6.72 KB
/
serializers.xml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of the Sylius package.
(c) Sylius Sp. z o.o.
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
-->
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"
>
<services>
<defaults public="true" />
<service id="Sylius\Bundle\ApiBundle\Serializer\AddressDenormalizer">
<argument type="service" id="serializer.normalizer.object" />
<argument type="string">%sylius.model.address.class%</argument>
<argument type="string">%sylius.model.address.interface%</argument>
<tag name="serializer.normalizer" priority="64" />
</service>
<service id="Sylius\Bundle\ApiBundle\Serializer\CommandArgumentsDenormalizer">
<argument type="service" id="Sylius\Bundle\ApiBundle\Serializer\CommandDenormalizer" />
<argument type="service" id="Sylius\Bundle\ApiBundle\Converter\IriToIdentifierConverterInterface" />
<argument type="service" id="sylius.api.data_transformer.command_aware_input_data_transformer" />
<tag name="serializer.normalizer" priority="128" />
</service>
<service id="Sylius\Bundle\ApiBundle\Serializer\CommandDenormalizer">
<argument type="service" id="api_platform.serializer.normalizer.item" />
<argument type="service" id="api_platform.name_converter" />
<tag name="serializer.normalizer" />
</service>
<service id="Sylius\Bundle\ApiBundle\Serializer\HydraErrorNormalizer" decorates="api_platform.hydra.normalizer.error">
<argument type="service" id="Sylius\Bundle\ApiBundle\Serializer\HydraErrorNormalizer.inner" />
<argument type="service" id="request_stack" />
<argument>%sylius.security.new_api_route%</argument>
</service>
<service id="Sylius\Bundle\ApiBundle\Serializer\ProductNormalizer">
<argument type="service" id="Sylius\Component\Product\Resolver\ProductVariantResolverInterface" />
<argument type="service" id="api_platform.symfony.iri_converter" />
<tag name="serializer.normalizer" priority="64" />
</service>
<service id="Sylius\Bundle\ApiBundle\Serializer\ProductAttributeValueDenormalizer">
<argument type="service" id="api_platform.symfony.iri_converter" />
<tag name="serializer.normalizer" priority="64" />
</service>
<service id="Sylius\Bundle\ApiBundle\Serializer\ProductDenormalizer">
<tag name="serializer.normalizer" priority="64" />
</service>
<service id="Sylius\Bundle\ApiBundle\Serializer\ProductAttributeValueNormalizer">
<argument type="service" id="sylius.locale_provider.channel_based" />
<argument>%locale%</argument>
<tag name="serializer.normalizer" priority="64" />
</service>
<service id="Sylius\Bundle\ApiBundle\Serializer\ProductImageNormalizer">
<argument type="service" id="liip_imagine.cache.manager" />
<argument type="service" id="request_stack" />
<argument type="string">%sylius_api.product_image_prefix%</argument>
<tag name="serializer.normalizer" priority="64" />
</service>
<service id="Sylius\Bundle\ApiBundle\Serializer\CommandNormalizer">
<argument type="service" id="serializer.normalizer.object" />
<tag name="serializer.normalizer" priority="64" />
</service>
<service id="Sylius\Bundle\ApiBundle\Serializer\ProductVariantNormalizer">
<argument type="service" id="sylius.calculator.product_variant_price" />
<argument type="service" id="sylius.availability_checker" />
<argument type="service" id="sylius.section_resolver.uri_based_section_resolver" />
<argument type="service" id="api_platform.symfony.iri_converter" />
<tag name="serializer.normalizer" priority="64" />
</service>
<service id="Sylius\Bundle\ApiBundle\Serializer\FlattenExceptionNormalizer" decorates="fos_rest.serializer.flatten_exception_normalizer">
<argument type="service" id="Sylius\Bundle\ApiBundle\Serializer\FlattenExceptionNormalizer.inner" />
<argument type="service" id="request_stack" />
<argument>%sylius.security.new_api_route%</argument>
</service>
<service id="Sylius\Bundle\ApiBundle\Serializer\ShippingMethodNormalizer">
<argument type="service" id="sylius.repository.order" />
<argument type="service" id="sylius.repository.shipment" />
<argument type="service" id="sylius.registry.shipping_calculator" />
<argument type="service" id="Symfony\Component\HttpFoundation\RequestStack" />
<argument type="service" id="Sylius\Component\Channel\Context\ChannelContextInterface" />
<tag name="serializer.normalizer" priority="64" />
</service>
<service id="Sylius\Bundle\ApiBundle\Serializer\ZoneDenormalizer">
<argument type="service" id="api_platform.symfony.iri_converter" />
<tag name="serializer.normalizer" priority="64" />
</service>
<service id="date_time_normalizer" class="Symfony\Component\Serializer\Normalizer\DateTimeNormalizer">
<argument type="collection">
<argument key="datetime_format">Y-m-d H:i:s</argument>
</argument>
<tag name="serializer.normalizer"/>
</service>
<service id="Sylius\Bundle\ApiBundle\Serializer\ChannelPriceHistoryConfigDenormalizer">
<argument type="service" id="api_platform.symfony.iri_converter" />
<argument type="service" id="sylius.factory.channel_price_history_config" />
<argument type="service" id="Sylius\Bundle\ApiBundle\Validator\ResourceInputDataPropertiesValidatorInterface" />
<argument>%sylius.form.type.channel_price_history_config.validation_groups%</argument>
<tag name="serializer.normalizer" priority="64" />
</service>
<service id="Sylius\Bundle\ApiBundle\Serializer\ChannelDenormalizer">
<argument type="service" id="sylius.factory.channel_price_history_config" />
<tag name="serializer.normalizer" priority="64" />
</service>
<service id="Sylius\Bundle\ApiBundle\Serializer\CustomerDenormalizer">
<argument type="service" id="clock" />
<tag name="serializer.normalizer" priority="64" />
</service>
</services>
</container>