-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy pathservices.yaml
More file actions
47 lines (39 loc) · 1.87 KB
/
Copy pathservices.yaml
File metadata and controls
47 lines (39 loc) · 1.87 KB
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
parameters:
app.rest.output.visitor.xml.regexps: ['(^application/app\.api\.[A-Za-z]+\+xml$)']
app.rest.output.visitor.json.regexps: ['(^application/app\.api\.[A-Za-z]+\+json$)']
services:
app.rest.output.visitor.xml:
class: Ibexa\Contracts\Rest\Output\Visitor
arguments:
- '@Ibexa\Rest\Output\Generator\Xml'
- '@App\Rest\Output\ValueObjectVisitorDispatcher'
tags:
- { name: ibexa.rest.output.visitor, regexps: app.rest.output.visitor.xml.regexps, priority: 20 }
app.rest.output.visitor.json:
class: Ibexa\Contracts\Rest\Output\Visitor
arguments:
- '@Ibexa\Rest\Output\Generator\Json'
- '@App\Rest\Output\ValueObjectVisitorDispatcher'
tags:
- { name: ibexa.rest.output.visitor, regexps: app.rest.output.visitor.json.regexps, priority: 20 }
App\Rest\Output\ValueObjectVisitorDispatcher:
class: App\Rest\Output\ValueObjectVisitorDispatcher
arguments:
- !tagged_iterator { tag: 'app.rest.output.value_object.visitor', index_by: 'type' }
- '@Ibexa\Contracts\Rest\Output\ValueObjectVisitorDispatcher'
App\Rest\ValueObjectVisitor\RestLocation:
class: App\Rest\ValueObjectVisitor\RestLocation
parent: Ibexa\Contracts\Rest\Output\ValueObjectVisitor
arguments:
$urlAliasService: '@ibexa.api.service.url_alias'
tags:
- { name: app.rest.output.value_object.visitor, type: Ibexa\Rest\Server\Values\RestLocation }
App\Rest\Controller\:
resource: '../src/Rest/Controller/'
parent: Ibexa\Rest\Server\Controller
autowire: true
autoconfigure: true
tags: ['controller.service_arguments', 'ibexa.api_platform.resource']
App\Rest\Serializer\:
resource: '../src/Rest/Serializer/'
tags: ['ibexa.rest.serializer.normalizer']