/
doctrine_orm.xml
128 lines (100 loc) · 7.5 KB
/
doctrine_orm.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
<?xml version="1.0" ?>
<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>
<service id="api_platform.doctrine.metadata_factory" class="Doctrine\Common\Persistence\Mapping\ClassMetadataFactory" public="false">
<factory service="doctrine.orm.default_entity_manager" method="getMetadataFactory" />
</service>
<service id="api_platform.doctrine.orm.collection_data_provider" public="false" abstract="true">
<argument type="service" id="doctrine" />
<argument type="collection" /> <!-- extensions -->
</service>
<service id="api_platform.doctrine.orm.item_data_provider" public="false" abstract="true">
<argument type="service" id="doctrine" />
<argument type="service" id="api_platform.metadata.property.name_collection_factory" />
<argument type="service" id="api_platform.metadata.property.metadata_factory" />
<argument type="collection" /> <!-- extensions -->
</service>
<service id="api_platform.doctrine.orm.default.collection_data_provider" parent="api_platform.doctrine.orm.collection_data_provider" class="ApiPlatform\Core\Bridge\Doctrine\Orm\CollectionDataProvider">
<tag name="api_platform.collection_data_provider" />
</service>
<service id="api_platform.doctrine.orm.default.item_data_provider" parent="api_platform.doctrine.orm.item_data_provider" class="ApiPlatform\Core\Bridge\Doctrine\Orm\ItemDataProvider">
<tag name="api_platform.item_data_provider" />
</service>
<!-- Filter -->
<service id="api_platform.doctrine.orm.search_filter" class="ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter" public="false" abstract="true">
<argument type="service" id="doctrine" />
<argument type="service" id="request_stack" />
<argument type="service" id="api_platform.iri_converter" />
<argument type="service" id="api_platform.property_accessor" />
<argument type="service" id="logger" on-invalid="ignore" />
</service>
<service id="api_platform.doctrine.orm.order_filter" class="ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\OrderFilter" public="false" abstract="true">
<argument type="service" id="doctrine" />
<argument type="service" id="request_stack" />
<argument>%api_platform.collection.order_parameter_name%</argument>
<argument type="service" id="logger" on-invalid="ignore" />
</service>
<service id="api_platform.doctrine.orm.range_filter" class="ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\RangeFilter" public="false" abstract="true">
<argument type="service" id="doctrine" />
<argument type="service" id="request_stack" />
<argument type="service" id="logger" on-invalid="ignore" />
</service>
<service id="api_platform.doctrine.orm.date_filter" class="ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\DateFilter" public="false" abstract="true">
<argument type="service" id="doctrine" />
<argument type="service" id="request_stack" />
<argument type="service" id="logger" on-invalid="ignore" />
</service>
<service id="api_platform.doctrine.orm.boolean_filter" class="ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\BooleanFilter" public="false" abstract="true">
<argument type="service" id="doctrine" />
<argument type="service" id="request_stack" />
<argument type="service" id="logger" on-invalid="ignore" />
</service>
<service id="api_platform.doctrine.orm.numeric_filter" class="ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\NumericFilter" public="false" abstract="true">
<argument type="service" id="doctrine" />
<argument type="service" id="request_stack" />
<argument type="service" id="logger" on-invalid="ignore" />
</service>
<!-- Metadata loader -->
<service id="api_platform.doctrine.orm.metadata.property.metadata_factory" class="ApiPlatform\Core\Bridge\Doctrine\Orm\Metadata\Property\DoctrineOrmPropertyMetadataFactory" decorates="api_platform.metadata.property.metadata_factory" decoration-priority="40" public="false">
<argument type="service" id="doctrine" />
<argument type="service" id="api_platform.doctrine.orm.metadata.property.metadata_factory.inner" />
</service>
<!-- Event listener -->
<service id="api_platform.doctrine.listener.view.write" class="ApiPlatform\Core\Bridge\Doctrine\EventListener\WriteListener">
<argument type="service" id="doctrine" />
<tag name="kernel.event_listener" event="kernel.view" method="onKernelView" priority="32" />
</service>
<!-- Doctrine Query extensions -->
<service id="api_platform.doctrine.orm.query_extension.eager_loading" class="ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\EagerLoadingExtension" public="false">
<argument type="service" id="api_platform.metadata.property.name_collection_factory" />
<argument type="service" id="api_platform.metadata.property.metadata_factory" />
<tag name="api_platform.doctrine.orm.query_extension.item" priority="64" />
<tag name="api_platform.doctrine.orm.query_extension.collection" priority="64" />
</service>
<service id="api_platform.doctrine.orm.query_extension.filter" class="ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\FilterExtension" public="false">
<argument type="service" id="api_platform.metadata.resource.metadata_factory" />
<argument type="service" id="api_platform.filters" />
<tag name="api_platform.doctrine.orm.query_extension.collection" priority="32" />
</service>
<service id="api_platform.doctrine.orm.query_extension.pagination" class="ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\PaginationExtension" public="false">
<argument type="service" id="doctrine" />
<argument type="service" id="request_stack" />
<argument type="service" id="api_platform.metadata.resource.metadata_factory" />
<argument>%api_platform.collection.pagination.enabled%</argument>
<argument>%api_platform.collection.pagination.client_enabled%</argument>
<argument>%api_platform.collection.pagination.client_items_per_page%</argument>
<argument>%api_platform.collection.pagination.items_per_page%</argument>
<argument>%api_platform.collection.pagination.page_parameter_name%</argument>
<argument>%api_platform.collection.pagination.enabled_parameter_name%</argument>
<argument>%api_platform.collection.pagination.items_per_page_parameter_name%</argument>
<argument>%api_platform.collection.pagination.maximum_items_per_page%</argument>
<tag name="api_platform.doctrine.orm.query_extension.collection" priority="8" />
</service>
<service id="api_platform.doctrine.orm.query_extension.order" class="ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\OrderExtension" public="false">
<argument>%api_platform.collection.order%</argument>
<tag name="api_platform.doctrine.orm.query_extension.collection" priority="16" />
</service>
</services>
</container>