source: src/webapp/apigility/module/gnuboat_mapservice/config/module.config.php@ cb39a77

debian/bullseye
Last change on this file since cb39a77 was cb39a77, checked in by Joachim Langenbach <joachim.langenbach@…>, 8 years ago

Trying user identification with oauth

  • Property mode set to 100644
File size: 10.4 KB
Line 
1<?php
2return [
3 'service_manager' => [
4 'factories' => [
5 \gnuboat_mapservice\V1\Rest\Upload\UploadResource::class => \gnuboat_mapservice\V1\Rest\Upload\UploadResourceFactory::class,
6 \gnuboat_mapservice\V1\Rest\Waters\WatersResource::class => \gnuboat_mapservice\V1\Rest\Waters\WatersResourceFactory::class,
7 ],
8 ],
9 'router' => [
10 'routes' => [
11 'gnuboat_mapservice.rest.upload' => [
12 'type' => 'Segment',
13 'options' => [
14 'route' => '/upload[/:upload_id]',
15 'defaults' => [
16 'controller' => 'gnuboat_mapservice\\V1\\Rest\\Upload\\Controller',
17 ],
18 ],
19 ],
20 'gnuboat_mapservice.rest.waters' => [
21 'type' => 'Segment',
22 'options' => [
23 'route' => '/waters[/:waters_id]',
24 'defaults' => [
25 'controller' => 'gnuboat_mapservice\\V1\\Rest\\Waters\\Controller',
26 ],
27 ],
28 ],
29 ],
30 ],
31 'zf-versioning' => [
32 'uri' => [
33 0 => 'gnuboat_mapservice.rest.upload',
34 1 => 'gnuboat_mapservice.rest.waters',
35 ],
36 ],
37 'zf-rest' => [
38 'gnuboat_mapservice\\V1\\Rest\\Upload\\Controller' => [
39 'listener' => \gnuboat_mapservice\V1\Rest\Upload\UploadResource::class,
40 'route_name' => 'gnuboat_mapservice.rest.upload',
41 'route_identifier_name' => 'upload_id',
42 'collection_name' => 'upload',
43 'entity_http_methods' => [
44 0 => 'GET',
45 1 => 'PATCH',
46 2 => 'PUT',
47 3 => 'DELETE',
48 ],
49 'collection_http_methods' => [
50 0 => 'GET',
51 1 => 'POST',
52 ],
53 'collection_query_whitelist' => [],
54 'page_size' => 25,
55 'page_size_param' => null,
56 'entity_class' => \gnuboat_mapservice\V1\Rest\Upload\UploadEntity::class,
57 'collection_class' => \gnuboat_mapservice\V1\Rest\Upload\UploadCollection::class,
58 'service_name' => 'upload',
59 ],
60 'gnuboat_mapservice\\V1\\Rest\\Waters\\Controller' => [
61 'listener' => \gnuboat_mapservice\V1\Rest\Waters\WatersResource::class,
62 'route_name' => 'gnuboat_mapservice.rest.waters',
63 'route_identifier_name' => 'waters_id',
64 'collection_name' => 'waters',
65 'entity_http_methods' => [
66 0 => 'GET',
67 1 => 'PATCH',
68 2 => 'PUT',
69 3 => 'DELETE',
70 ],
71 'collection_http_methods' => [
72 0 => 'GET',
73 1 => 'POST',
74 ],
75 'collection_query_whitelist' => [
76 0 => 'label',
77 ],
78 'page_size' => 25,
79 'page_size_param' => null,
80 'entity_class' => \gnuboat_mapservice\GnuBoat\MapService\Water::class,
81 'collection_class' => 'GnuBoat\\MapService\\WaterCollection',
82 'service_name' => 'waters',
83 ],
84 ],
85 'zf-content-negotiation' => [
86 'controllers' => [
87 'gnuboat_mapservice\\V1\\Rest\\Upload\\Controller' => 'HalJson',
88 'gnuboat_mapservice\\V1\\Rest\\Waters\\Controller' => 'HalJson',
89 ],
90 'accept_whitelist' => [
91 'gnuboat_mapservice\\V1\\Rest\\Upload\\Controller' => [
92 0 => 'application/vnd.gnuboat_mapservice.v1+json',
93 1 => 'application/hal+json',
94 2 => 'application/json',
95 ],
96 'gnuboat_mapservice\\V1\\Rest\\Waters\\Controller' => [
97 0 => 'application/vnd.gnuboat_mapservice.v1+json',
98 1 => 'application/hal+json',
99 2 => 'application/json',
100 ],
101 ],
102 'content_type_whitelist' => [
103 'gnuboat_mapservice\\V1\\Rest\\Upload\\Controller' => [
104 0 => 'application/vnd.gnuboat_mapservice.v1+json',
105 1 => 'application/json',
106 ],
107 'gnuboat_mapservice\\V1\\Rest\\Waters\\Controller' => [
108 0 => 'application/vnd.gnuboat_mapservice.v1+json',
109 1 => 'application/json',
110 ],
111 ],
112 ],
113 'zf-hal' => [
114 'metadata_map' => [
115 \gnuboat_mapservice\V1\Rest\Upload\UploadEntity::class => [
116 'entity_identifier_name' => 'id',
117 'route_name' => 'gnuboat_mapservice.rest.upload',
118 'route_identifier_name' => 'upload_id',
119 'hydrator' => \Zend\Hydrator\ArraySerializable::class,
120 ],
121 \gnuboat_mapservice\V1\Rest\Upload\UploadCollection::class => [
122 'entity_identifier_name' => 'id',
123 'route_name' => 'gnuboat_mapservice.rest.upload',
124 'route_identifier_name' => 'upload_id',
125 'is_collection' => true,
126 ],
127 'gnuboat_mapservice\\V1\\Rest\\Waters\\WatersEntity' => [
128 'entity_identifier_name' => 'id',
129 'route_name' => 'gnuboat_mapservice.rest.waters',
130 'route_identifier_name' => 'waters_id',
131 'hydrator' => \Zend\Hydrator\ArraySerializable::class,
132 ],
133 'gnuboat_mapservice\\V1\\Rest\\Waters\\WatersCollection' => [
134 'entity_identifier_name' => 'id',
135 'route_name' => 'gnuboat_mapservice.rest.waters',
136 'route_identifier_name' => 'waters_id',
137 'is_collection' => true,
138 ],
139 \gnuboat_mapservice\GnuBoat\MapService\Water::class => [
140 'entity_identifier_name' => 'id',
141 'route_name' => 'gnuboat_mapservice.rest.waters',
142 'route_identifier_name' => 'waters_id',
143 'hydrator' => \Zend\Hydrator\Reflection::class,
144 ],
145 \gnuboat_mapservice\GnuBoat\MapService\WaterCollection::class => [
146 'entity_identifier_name' => 'id',
147 'route_name' => 'gnuboat_mapservice.rest.waters',
148 'route_identifier_name' => 'waters_id',
149 'is_collection' => true,
150 ],
151 'gnuboat_mapservice\\src\\GnuBoat\\MapService\\Water' => [
152 'entity_identifier_name' => 'id',
153 'route_name' => 'gnuboat_mapservice.rest.waters',
154 'route_identifier_name' => 'waters_id',
155 'hydrator' => \Zend\Hydrator\Reflection::class,
156 ],
157 'gnuboat_mapservice\\src\\GnuBoat\\MapService\\WaterCollection' => [
158 'entity_identifier_name' => 'id',
159 'route_name' => 'gnuboat_mapservice.rest.waters',
160 'route_identifier_name' => 'waters_id',
161 'is_collection' => true,
162 ],
163 'GnuBoat\\MapService\\Water' => [
164 'entity_identifier_name' => 'id',
165 'route_name' => 'gnuboat_mapservice.rest.waters',
166 'route_identifier_name' => 'waters_id',
167 'hydrator' => \Zend\Hydrator\Reflection::class,
168 ],
169 'GnuBoat\\MapService\\WaterCollection' => [
170 'entity_identifier_name' => 'id',
171 'route_name' => 'gnuboat_mapservice.rest.waters',
172 'route_identifier_name' => 'waters_id',
173 'is_collection' => true,
174 ],
175 ],
176 ],
177 'zf-content-validation' => [
178 'gnuboat_mapservice\\V1\\Rest\\Waters\\Controller' => [
179 'input_filter' => 'gnuboat_mapservice\\V1\\Rest\\Waters\\Validator',
180 ],
181 ],
182 'input_filter_specs' => [
183 'gnuboat_mapservice\\V1\\Rest\\Waters\\Validator' => [
184 0 => [
185 'required' => false,
186 'validators' => [
187 0 => [
188 'name' => \Zend\Validator\Digits::class,
189 'options' => [],
190 ],
191 ],
192 'filters' => [],
193 'name' => 'id',
194 'description' => 'Unique Identifier',
195 'field_type' => 'int',
196 'error_message' => 'The identifier of a water must be an integer.',
197 ],
198 1 => [
199 'required' => true,
200 'validators' => [],
201 'filters' => [
202 0 => [
203 'name' => \Zend\Filter\StringTrim::class,
204 'options' => [],
205 ],
206 ],
207 'name' => 'label',
208 'description' => 'Label of the water',
209 'error_message' => 'You must enter a Water name',
210 ],
211 2 => [
212 'required' => false,
213 'validators' => [
214 0 => [
215 'name' => \Zend\Validator\Digits::class,
216 'options' => [],
217 ],
218 ],
219 'filters' => [],
220 'name' => 'osm_id',
221 'description' => 'OpenStreetMap Id of the object',
222 'allow_empty' => true,
223 ],
224 3 => [
225 'required' => false,
226 'validators' => [],
227 'filters' => [
228 0 => [
229 'name' => \Zend\Filter\StringTrim::class,
230 'options' => [],
231 ],
232 ],
233 'name' => 'osm_type',
234 'description' => 'OpenStreetMap type of the object',
235 'field_type' => 'string',
236 'allow_empty' => true,
237 ],
238 ],
239 ],
240 'zf-mvc-auth' => [
241 'authentication' => [
242 'map' => [
243 'gnuboat_mapservice\\V1' => 'gnuboat-oauth',
244 'ZF\\OAuth2' => 'session',
245 ],
246 ],
247 'authorization' => [
248 'gnuboat_mapservice\\V1\\Rest\\Waters\\Controller' => [
249 'collection' => [
250 'GET' => false,
251 'POST' => true,
252 'PUT' => false,
253 'PATCH' => false,
254 'DELETE' => false,
255 ],
256 'entity' => [
257 'GET' => false,
258 'POST' => false,
259 'PUT' => true,
260 'PATCH' => true,
261 'DELETE' => true,
262 ],
263 ],
264 ],
265 'session' => [
266 'adapter' => 'Application\\Authentication\\Adapter\\SessionAdapter',
267 ],
268 ],
269];
Note: See TracBrowser for help on using the repository browser.