forked from ezsystems/repository-forms
/
views.yml
67 lines (59 loc) · 2.69 KB
/
views.yml
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
services:
_defaults:
public: false
autowire: true
autoconfigure: true
# ContentEditView
EzSystems\RepositoryForms\Content\View\Builder\ContentEditViewBuilder:
arguments:
- '@ezpublish.api.repository'
- '@ezpublish.view.configurator'
- '@ezpublish.view.view_parameters.injector.dispatcher'
- '$content_edit.templates.edit$'
- '@ezrepoforms.action_dispatcher.content'
EzSystems\RepositoryForms\Content\View\Provider\ContentEditView\Configured:
arguments:
- '@ezplatform.repository_forms.content_edit_view.matcher_factory'
tags:
- { name: ezpublish.view_provider, type: EzSystems\RepositoryForms\Content\View\ContentEditView, priority: 10 }
ezplatform.repository_forms.content_edit_view.matcher_factory:
class: '%ezpublish.view.matcher_factory.class%'
arguments:
- '@ezpublish.api.repository'
- 'eZ\Publish\Core\MVC\Symfony\Matcher\ContentBased'
calls:
- [setContainer, ['@service_container']]
- [setMatchConfig, ['$content_edit_view$']]
EzSystems\RepositoryForms\Content\View\Filter\ContentEditViewFilter:
arguments:
- '@ezpublish.api.service.content'
- '@ezpublish.api.service.content_type'
tags:
- { name: kernel.event_subscriber }
# ContentCreateView
EzSystems\RepositoryForms\Content\View\Builder\ContentCreateViewBuilder:
arguments:
- '@ezpublish.api.repository'
- '@ezpublish.view.configurator'
- '@ezpublish.view.view_parameters.injector.dispatcher'
- '$content_edit.templates.create$'
- '@ezrepoforms.action_dispatcher.content'
EzSystems\RepositoryForms\Content\View\Provider\ContentCreateView\Configured:
arguments:
- '@ezplatform.repository_forms.content_create_view.matcher_factory'
tags:
- {name: ezpublish.view_provider, type: 'EzSystems\RepositoryForms\Content\View\ContentCreateView', priority: 10}
ezplatform.repository_forms.content_create_view.matcher_factory:
class: '%ezpublish.view.matcher_factory.class%'
arguments:
- '@ezpublish.api.repository'
- 'eZ\Publish\Core\MVC\Symfony\Matcher\ContentBased'
calls:
- [setContainer, ['@service_container']]
- [setMatchConfig, ['$content_create_view$']]
EzSystems\RepositoryForms\Content\View\Filter\ContentCreateViewFilter:
arguments:
- '@ezpublish.api.service.location'
- '@ezpublish.api.service.content_type'
tags:
- { name: kernel.event_subscriber }