forked from ezsystems/ezplatform-demo
/
services.yml
84 lines (73 loc) · 2.73 KB
/
services.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Learn more about services, parameters and containers at
# https://symfony.com/doc/current/service_container.html
parameters:
#parameter_name: value
services:
# default configuration for services in *this* file
_defaults:
# automatically injects dependencies in your services
autowire: true
# automatically registers your services as commands, event subscribers, etc.
autoconfigure: true
# this means you cannot fetch services directly from the container via $container->get()
# if you need to do this, you can override this setting on individual services
public: false
app.controller.menu:
class: AppBundle\Controller\MenuController
public: true
arguments:
- '@templating'
- '@ezpublish.api.service.search'
- '@app.query_type.menu'
- '%app.top_menu.parent_location_id%'
- '%app.top_menu.includedContentTypeIdentifier%'
app.query_type.menu:
class: AppBundle\QueryType\MenuQueryType
calls:
- [setLanguages, [$languages$]]
tags:
- { name: ezpublish.query_type }
app.controller.contactform:
class: AppBundle\Controller\ContactFormController
public: true
arguments:
- '@form.factory'
- '@app.mail.sender'
- '@templating'
- '@hautelook.router.template'
app.controller.product_list_controller:
class: AppBundle\Controller\ProductListController
public: true
arguments:
- '@ezpublish.query_type_content_view_mapper'
- '@ezpublish.api.service.search'
- '@form.factory'
app.mail.sender:
class: AppBundle\Mail\Sender
public: true
arguments:
- '@mailer'
- '@translator'
- '@templating'
- '%app.contact_form.sender_email%'
- '%app.contact_form.recipient_email%'
app.twig.content_info_by_location_id_extension:
class: AppBundle\Twig\ContentInfoByLocationIdExtension
arguments:
- '@ezpublish.api.service.location'
- '@ezpublish.api.service.content'
AppBundle\Twig\YoutubeIdExtractorExtension:
tags:
- { name: twig.extension }
AppBundle\Twig\SearchResultExtractorExtension:
tags:
- { name: twig.extension }
AppBundle\PremiumContent\HtmlRenderer: ~
AppBundle\User\UserGroups: ~
AppBundle\Twig\PremiumContentExtension:
arguments:
- '@AppBundle\PremiumContent\HtmlRenderer'
- '@AppBundle\User\UserGroups'
- '%app.premium_content.allowed_user_groups.location_ids%'
tags:
- { name: twig.extension }