-
Notifications
You must be signed in to change notification settings - Fork 106
/
services.yaml
216 lines (166 loc) 路 8.19 KB
/
services.yaml
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
parameters:
secret: ThisTokenIsNotSoSecretChangeItImmediately
# use echo \Defuse\Crypto\Key::createNewRandomKey()->saveToAsciiSafeString(); to generate secret for data encryption
app_encryption_secret: "ThisTokenIsNotSoSecretChangeItImmediately"
#this is necessary for CLI commands to get the base url, eg. sitemap dump
router.request_context.host: demo.pimcore.fun
router.request_context.scheme: https
# customize the full path to external executables
# normally they are auto-detected by `which program` or auto-discovered in the configured path in
# System Settings -> General -> Additional $PATH variable
# but in general it's a good idea to have your programs in your $PATH environment variable (system wide)
#pimcore_executable_composer: php /opt/vendor/bin/composer.phar
#pimcore_executable_html2text: /usr/local/html2text/bin/html2text
#pimcore_executable_soffice: /opt/libreoffice/bin/soffice
#pimcore_executable_gs: /opt/ghostscript/bin/gs
#pimcore_executable_pdftotext: /opt/tools/pdftotext
#pimcore_executable_xvfb-run: /opt/tools/xvfb-run
#pimcore_executable_pngcrush: /opt/tools/pngcrush
#pimcore_executable_zopflipng: /opt/tools/zopflipng
#pimcore_executable_pngout: /opt/tools/pngout
#pimcore_executable_advpng: /opt/tools/advpng
#pimcore_executable_cjpeg: /opt/tools/cjpeg
#pimcore_executable_jpegoptim: /opt/tools/jpegoptim
#pimcore_executable_php: /usr/local/custom-php/bin/php
#pimcore_executable_nice: /opt/tools/nice
#pimcore_executable_nohup: /opt/tools/nohup
#pimcore_executable_ffmpeg: /opt/tools/ffmpeg
#pimcore_executable_exiftool: /opt/tools/exiftool
#pimcore_executable_wkhtmltoimage: /usr/local/bin/wkhtmltoimage
#pimcore_executable_timeout: /usr/bin/timeout
#pimcore_executable_facedetect: /usr/bin/facedetect
# graphviz
#pimcore_executable_dot: /usr/bin/dot
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
# ---------------------------------------------------------
# Register all controllers of App as services
# ---------------------------------------------------------
App\Controller\:
resource: '../src/Controller'
public: true
tags: ['controller.service_arguments']
# ---------------------------------------------------------
# Register all commands of App as commands
# ---------------------------------------------------------
App\Command\:
resource: '../src/Command'
tags: ['console.command']
# ---------------------------------------------------------
# Forms
# ---------------------------------------------------------
App\Form\DeliveryAddressFormType: ~
App\Form\LoginFormType: ~
App\Form\RegistrationFormType: ~
App\Form\RegistrationFormHandler: ~
App\Form\CarSubmitFormType: ~
# ---------------------------------------------------------
# Processors
# ---------------------------------------------------------
App\Sitemaps\Processors\AbsoluteURLProcessor: ~
# ---------------------------------------------------------
# Sitemaps
# ---------------------------------------------------------
App\Sitemaps\NewsGenerator:
arguments:
$processors:
- '@App\Sitemaps\Processors\AbsoluteURLProcessor'
App\Sitemaps\ProductGenerator:
arguments:
$processors:
- '@App\Sitemaps\Processors\AbsoluteURLProcessor'
App\Sitemaps\CategoryGenerator:
arguments:
$processors:
- '@App\Sitemaps\Processors\AbsoluteURLProcessor'
# ---------------------------------------------------------
# Misc Services
# ---------------------------------------------------------
App\Services\PasswordRecoveryService: ~
App\Services\NewsletterDoubleOptInService: ~
App\Services\SegmentTrackingHelperService: ~
App\Services\Workflow\CustomHtmlService: ~
App\Website\Navigation\BreadcrumbHelperService: ~
App\Model\Product\CalculatedValue\QualityCalculator:
public: true
App\Model\Product\CalculatedValue\AccessoryPartName:
public: true
# ---------------------------------------------------------
# Twig Extensions
# ---------------------------------------------------------
App\Twig\Extension\CategoryFilterExtension:
tags: ['twig.extension']
App\Twig\Extension\Country:
tags: ['twig.extension']
App\Twig\Extension\Currency:
tags: ['twig.extension']
App\Twig\Extension\GeneralFilterExtension:
tags: ['twig.extension']
App\Twig\Extension\NavigationExtension:
tags: ['twig.extension']
App\Twig\Extension\UniqidExtension:
tags: ['twig.extension']
App\Twig\Extension\LanguageSwitcherExtension:
tags: ['twig.extension']
App\Twig\Extension\ProductPageExtension:
tags: ['twig.extension']
App\Twig\Extension\NewsExtension:
tags: ['twig.extension']
App\Twig\Extension\PrintCatalogExtension:
tags: ['twig.extension']
# ---------------------------------------------------------
# Link Generators for DataObjects
# ---------------------------------------------------------
App\Website\LinkGenerator\CategoryLinkGenerator:
public: true
App\Website\LinkGenerator\ProductLinkGenerator:
public: true
App\Website\LinkGenerator\NewsLinkGenerator:
public: true
# ---------------------------------------------------------
# Overwrite Pimcore Default Services
# ---------------------------------------------------------
# overwrite PimcoreUrl helper to add existing parameters to generated urls
Pimcore\Twig\Extension\Templating\PimcoreUrl:
class: App\Website\Tool\PimcoreUrl
arguments:
$generator: '@router'
# ---------------------------------------------------------
# Event Listeners
# ---------------------------------------------------------
# auto sets name based on key for bodystyle, manufacturer, category
App\EventListener\NameSettingListener:
tags:
- { name: kernel.event_listener, event: pimcore.dataobject.preAdd, method: onPreAdd }
# adds additional static files to admin backend
App\EventListener\PimcoreAdminListener:
tags:
- { name: kernel.event_listener, event: pimcore.bundle_manager.paths.css, method: addCSSFiles }
- { name: kernel.event_listener, event: pimcore.bundle_manager.paths.js, method: addJSFiles }
- { name: kernel.event_listener, event: pimcore.admin.resolve.elementAdminStyle, method: onResolveElementAdminStyle }
# checkout listeners for ecommerce application
App\EventListener\CheckoutEventListener:
tags:
- { name: kernel.event_listener, event: pimcore.ecommerce.ordermanager.postUpdateOrder, method: onUpdateOrder }
- { name: kernel.event_listener, event: pimcore.ecommerce.commitorderprocessor.sendConfirmationMails, method: sendConfirmationMail }
- { name: kernel.event_listener, event: pimcore.ecommerce.commitorderprocessor.postCommitOrder, method: postCommitOrder }
# authentication login listener for updating e-commerce framework environment after login
App\EventListener\AuthenticationLoginListener: ~
# authentication login listener for updating e-commerce framework environment after logout
App\EventListener\AuthenticationLogoutListener:
tags:
- { name: 'kernel.event_subscriber', dispatcher: 'security.event_dispatcher.pimcore_admin' }
# ---------------------------------------------------------
# Workflow
# ---------------------------------------------------------
App\Workflow\SupportsStrategy: ~
App\MyAreaBricks\Custom\Areabricks\:
resource: '../src/MyAreaBricks/Custom/Areabricks/*'