forked from kaliop-uk/ezmigrationbundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
services.yml
653 lines (556 loc) · 30.7 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
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
parameters:
# The directory (inside each bundle) where to look for migrations definitions
# NB: this parameter will be renamed in v3
kaliop_bundle_migration.version_directory: 'MigrationVersions'
# The database tables used to store migration information. Will be created automatically
ez_migration_bundle.table_name: 'kaliop_migrations'
ez_migration_bundle.context_table_name: 'kaliop_migrations_contexts'
# Used to discriminate valid migration definitions
ez_migration_bundle.valid_databases:
# names have to correspond to doctrine 'platform', short of version numbers and lowercase
# NB: this does NOT mean that eZPublish supports all of them :-)
- 'mysql'
- 'postgresql'
- 'oracle'
- 'sqlite'
- 'drizzle'
- 'sqlserver'
- 'sqlanywhere'
# Set to false to disable completely the debug output of executed migration steps in verbose mode
ez_migration_bundle.enable_debug_output: true
# Deprecated parameter. Left in for the v1-to-v2 migration to work. Will be removed in v3
kaliop_bundle_migration.table_name: 'kaliop_versions'
ez_migration_bundle.migration_service.class: Kaliop\eZMigrationBundle\Core\MigrationService
ez_migration_bundle.loader.filesystem.class: Kaliop\eZMigrationBundle\Core\Loader\Filesystem
ez_migration_bundle.definition_parser.yaml.class: Kaliop\eZMigrationBundle\Core\DefinitionParser\YamlDefinitionParser
ez_migration_bundle.definition_parser.json.class: Kaliop\eZMigrationBundle\Core\DefinitionParser\JsonDefinitionParser
ez_migration_bundle.definition_parser.sql.class: Kaliop\eZMigrationBundle\Core\DefinitionParser\SQLDefinitionParser
ez_migration_bundle.definition_parser.php.class: Kaliop\eZMigrationBundle\Core\DefinitionParser\PHPDefinitionParser
ez_migration_bundle.context_handler.class: Kaliop\eZMigrationBundle\Core\ContextHandler
ez_migration_bundle.storage_handler.database.class: Kaliop\eZMigrationBundle\Core\StorageHandler\Database\Migration
ez_migration_bundle.context_storage_handler.database.class: Kaliop\eZMigrationBundle\Core\StorageHandler\Database\Context
ez_migration_bundle.executor.file.class: Kaliop\eZMigrationBundle\Core\Executor\FileExecutor
ez_migration_bundle.executor.http.class: Kaliop\eZMigrationBundle\Core\Executor\HTTPExecutor
ez_migration_bundle.executor.mail.class: Kaliop\eZMigrationBundle\Core\Executor\MailExecutor
ez_migration_bundle.executor.migration.class: Kaliop\eZMigrationBundle\Core\Executor\MigrationExecutor
ez_migration_bundle.executor.migration_definition.class: Kaliop\eZMigrationBundle\Core\Executor\MigrationDefinitionExecutor
ez_migration_bundle.executor.php.class: Kaliop\eZMigrationBundle\Core\Executor\PHPExecutor
ez_migration_bundle.executor.process.class: Kaliop\eZMigrationBundle\Core\Executor\ProcessExecutor
ez_migration_bundle.executor.sql.class: Kaliop\eZMigrationBundle\Core\Executor\SQLExecutor
ez_migration_bundle.executor.reference.class: Kaliop\eZMigrationBundle\Core\Executor\ReferenceExecutor
ez_migration_bundle.executor.repository.class: Kaliop\eZMigrationBundle\Core\Executor\RepositoryExecutor
ez_migration_bundle.executor.content_manager.class: Kaliop\eZMigrationBundle\Core\Executor\ContentManager
ez_migration_bundle.executor.content_type_manager.class: Kaliop\eZMigrationBundle\Core\Executor\ContentTypeManager
ez_migration_bundle.executor.content_type_group_manager.class: Kaliop\eZMigrationBundle\Core\Executor\ContentTypeGroupManager
ez_migration_bundle.executor.language_manager.class: Kaliop\eZMigrationBundle\Core\Executor\LanguageManager
ez_migration_bundle.executor.location_manager.class: Kaliop\eZMigrationBundle\Core\Executor\LocationManager
ez_migration_bundle.executor.object_state_manager.class: Kaliop\eZMigrationBundle\Core\Executor\ObjectStateManager
ez_migration_bundle.executor.object_state_group_manager.class: Kaliop\eZMigrationBundle\Core\Executor\ObjectStateGroupManager
ez_migration_bundle.executor.role_manager.class: Kaliop\eZMigrationBundle\Core\Executor\RoleManager
ez_migration_bundle.executor.section_manager.class: Kaliop\eZMigrationBundle\Core\Executor\SectionManager
ez_migration_bundle.executor.tag_manager.class: Kaliop\eZMigrationBundle\Core\Executor\TagManager
ez_migration_bundle.executor.user_manager.class: Kaliop\eZMigrationBundle\Core\Executor\UserManager
ez_migration_bundle.executor.user_group_manager.class: Kaliop\eZMigrationBundle\Core\Executor\UserGroupManager
ez_migration_bundle.content_matcher.class: Kaliop\eZMigrationBundle\Core\Matcher\ContentMatcher
ez_migration_bundle.content_type_matcher.class: Kaliop\eZMigrationBundle\Core\Matcher\ContentTypeMatcher
ez_migration_bundle.content_type_group_matcher.class: Kaliop\eZMigrationBundle\Core\Matcher\ContentTypeGroupMatcher
ez_migration_bundle.location_matcher.class: Kaliop\eZMigrationBundle\Core\Matcher\LocationMatcher
ez_migration_bundle.object_state_matcher.class: Kaliop\eZMigrationBundle\Core\Matcher\ObjectStateMatcher
ez_migration_bundle.object_state_group_matcher.class: Kaliop\eZMigrationBundle\Core\Matcher\ObjectStateGroupMatcher
ez_migration_bundle.reference_matcher.class: Kaliop\eZMigrationBundle\Core\Matcher\ReferenceMatcher
ez_migration_bundle.role_matcher.class: Kaliop\eZMigrationBundle\Core\Matcher\RoleMatcher
ez_migration_bundle.section_matcher.class: Kaliop\eZMigrationBundle\Core\Matcher\SectionMatcher
ez_migration_bundle.tag_matcher.class: Kaliop\eZMigrationBundle\Core\Matcher\TagMatcher
ez_migration_bundle.user_matcher.class: Kaliop\eZMigrationBundle\Core\Matcher\UserMatcher
ez_migration_bundle.user_group_matcher.class: Kaliop\eZMigrationBundle\Core\Matcher\UserGroupMatcher
ez_migration_bundle.complex_field_manager.class: Kaliop\eZMigrationBundle\Core\FieldHandlerManager
ez_migration_bundle.complex_field.ezauthor.class: Kaliop\eZMigrationBundle\Core\FieldHandler\EzAuthor
ez_migration_bundle.complex_field.ezbinaryfile.class: Kaliop\eZMigrationBundle\Core\FieldHandler\EzBinaryFile
ez_migration_bundle.complex_field.ezboolean.class: Kaliop\eZMigrationBundle\Core\FieldHandler\EzBoolean
ez_migration_bundle.complex_field.ezdate.class: Kaliop\eZMigrationBundle\Core\FieldHandler\EzDate
ez_migration_bundle.complex_field.ezdatetime.class: Kaliop\eZMigrationBundle\Core\FieldHandler\EzDateAndTime
ez_migration_bundle.complex_field.ezimage.class: Kaliop\eZMigrationBundle\Core\FieldHandler\EzImage
ez_migration_bundle.complex_field.ezmedia.class: Kaliop\eZMigrationBundle\Core\FieldHandler\EzMedia
ez_migration_bundle.complex_field.ezpage.class: Kaliop\eZMigrationBundle\Core\FieldHandler\EzPage
ez_migration_bundle.complex_field.ezrelation.class: Kaliop\eZMigrationBundle\Core\FieldHandler\EzRelation
ez_migration_bundle.complex_field.ezrelationlist.class: Kaliop\eZMigrationBundle\Core\FieldHandler\EzRelationList
ez_migration_bundle.complex_field.ezrichtext.class: Kaliop\eZMigrationBundle\Core\FieldHandler\EzRichText
ez_migration_bundle.complex_field.ezselection.class: Kaliop\eZMigrationBundle\Core\FieldHandler\EzSelection
ez_migration_bundle.complex_field.ezxmltext.class: Kaliop\eZMigrationBundle\Core\FieldHandler\EzXmlText
ez_migration_bundle.complex_field.eztags.class: Kaliop\eZMigrationBundle\Core\FieldHandler\EzTags
ez_migration_bundle.reference_resolver.chain.class: Kaliop\eZMigrationBundle\Core\ReferenceResolver\ChainResolver
ez_migration_bundle.reference_resolver.chain_prefix.class: Kaliop\eZMigrationBundle\Core\ReferenceResolver\ChainPrefixResolver
ez_migration_bundle.reference_resolver.customreference.class: Kaliop\eZMigrationBundle\Core\ReferenceResolver\CustomReferenceResolver
ez_migration_bundle.reference_resolver.content.class: Kaliop\eZMigrationBundle\Core\ReferenceResolver\ContentResolver
ez_migration_bundle.reference_resolver.location.class: Kaliop\eZMigrationBundle\Core\ReferenceResolver\LocationResolver
ez_migration_bundle.reference_resolver.tag.class: Kaliop\eZMigrationBundle\Core\ReferenceResolver\TagResolver
ez_migration_bundle.helper.limitation_converter.class: Kaliop\eZMigrationBundle\Core\Helper\LimitationConverter
ez_migration_bundle.helper.sort_converter.class: Kaliop\eZMigrationBundle\Core\Helper\SortConverter
ez_migration_bundle.helper.console_io.class: Kaliop\eZMigrationBundle\Core\Helper\ConsoleIO
ez_migration_bundle.step_executed_listener.tracing.class: Kaliop\eZMigrationBundle\Core\EventListener\TracingStepExecutedListener
services:
ez_migration_bundle.migration_service:
class: '%ez_migration_bundle.migration_service.class%'
arguments:
- '@ez_migration_bundle.loader'
- '@ez_migration_bundle.storage_handler'
- '@ezpublish.api.repository'
- '@event_dispatcher'
- '@ez_migration_bundle.context_handler'
tags:
- { name: ez_migration_bundle.context_provider, label: migration_service }
### loaders
ez_migration_bundle.loader:
alias: ez_migration_bundle.loader.filesystem
ez_migration_bundle.loader.filesystem:
class: '%ez_migration_bundle.loader.filesystem.class%'
arguments:
- '@kernel'
- '%kaliop_bundle_migration.version_directory%'
### parsers
ez_migration_bundle.definition_parser.yaml:
class: '%ez_migration_bundle.definition_parser.yaml.class%'
arguments: []
tags:
- { name: ez_migration_bundle.definition_parser }
ez_migration_bundle.definition_parser.json:
class: '%ez_migration_bundle.definition_parser.json.class%'
arguments: []
tags:
- { name: ez_migration_bundle.definition_parser }
ez_migration_bundle.definition_parser.sql:
class: '%ez_migration_bundle.definition_parser.sql.class%'
arguments:
- '%ez_migration_bundle.valid_databases%'
tags:
- { name: ez_migration_bundle.definition_parser }
ez_migration_bundle.definition_parser.php:
class: '%ez_migration_bundle.definition_parser.php.class%'
arguments: []
tags:
- { name: ez_migration_bundle.definition_parser }
### storage handlers
ez_migration_bundle.storage_handler:
alias: ez_migration_bundle.storage_handler.database
ez_migration_bundle.storage_handler.database:
class: '%ez_migration_bundle.storage_handler.database.class%'
arguments:
- '@ezpublish.connection'
- '%ez_migration_bundle.table_name%'
ez_migration_bundle.context_storage_handler:
alias: ez_migration_bundle.context_storage_handler.database
ez_migration_bundle.context_storage_handler.database:
class: '%ez_migration_bundle.context_storage_handler.database.class%'
arguments:
- '@ezpublish.connection'
- '%ez_migration_bundle.context_table_name%'
### executors
ez_migration_bundle.executor.file:
class: '%ez_migration_bundle.executor.file.class%'
arguments:
- '@ez_migration_bundle.reference_resolver.customreference'
tags:
- { name: ez_migration_bundle.executor }
ez_migration_bundle.executor.http:
class: '%ez_migration_bundle.executor.http.class%'
arguments:
- '@service_container'
- '@ez_migration_bundle.reference_resolver.customreference'
tags:
- { name: ez_migration_bundle.executor }
ez_migration_bundle.executor.mail:
class: '%ez_migration_bundle.executor.mail.class%'
arguments:
- '@mailer'
- '@ez_migration_bundle.reference_resolver.customreference'
tags:
- { name: ez_migration_bundle.executor }
ez_migration_bundle.executor.migration:
class: '%ez_migration_bundle.executor.migration.class%'
arguments:
- '@ez_migration_bundle.reference_matcher'
- '@ez_migration_bundle.reference_resolver.customreference'
- '@ez_migration_bundle.executor.content_manager'
- '@ez_migration_bundle.executor.location_manager'
- '@ez_migration_bundle.executor.content_type_manager'
tags:
- { name: ez_migration_bundle.executor }
ez_migration_bundle.executor.migration_definition:
class: '%ez_migration_bundle.executor.migration_definition.class%'
arguments:
- '@ez_migration_bundle.migration_service'
- '@ez_migration_bundle.reference_resolver.customreference'
# avoid 'ServiceCircularReferenceException' errors when this service is injected into a migration service
# that is related to the event dispatcher by making it lazy
lazy: true
tags:
- { name: ez_migration_bundle.executor }
ez_migration_bundle.executor.php:
class: '%ez_migration_bundle.executor.php.class%'
arguments:
- '@service_container'
tags:
- { name: ez_migration_bundle.executor }
ez_migration_bundle.executor.process:
class: '%ez_migration_bundle.executor.process.class%'
arguments:
- '@ez_migration_bundle.reference_resolver.customreference'
tags:
- { name: ez_migration_bundle.executor }
ez_migration_bundle.executor.reference:
class: '%ez_migration_bundle.executor.reference.class%'
arguments:
- '@service_container'
- '@ez_migration_bundle.reference_resolver.customreference'
tags:
- { name: ez_migration_bundle.executor }
ez_migration_bundle.executor.sql:
class: '%ez_migration_bundle.executor.sql.class%'
arguments:
- '@ezpublish.connection'
- '@ez_migration_bundle.reference_resolver.customreference'
tags:
- { name: ez_migration_bundle.executor }
ez_migration_bundle.executor.repository:
abstract: true
class: '%ez_migration_bundle.executor.repository.class%'
calls:
- ['setRepository', ['@ezpublish.api.repository']]
- ['setReferenceResolver', ['@ez_migration_bundle.reference_resolver.customreference']]
ez_migration_bundle.executor.content_manager:
parent: ez_migration_bundle.executor.repository
class: '%ez_migration_bundle.executor.content_manager.class%'
arguments:
- '@ez_migration_bundle.content_matcher'
- '@ez_migration_bundle.section_matcher'
- '@ez_migration_bundle.user_matcher'
- '@ez_migration_bundle.object_state_matcher'
- '@ez_migration_bundle.object_state_group_matcher'
- '@ez_migration_bundle.complex_field_manager'
- '@ez_migration_bundle.executor.location_manager'
- '@ez_migration_bundle.helper.sort_converter'
tags:
- { name: ez_migration_bundle.executor }
ez_migration_bundle.executor.content_type_manager:
parent: ez_migration_bundle.executor.repository
class: '%ez_migration_bundle.executor.content_type_manager.class%'
arguments:
- '@ez_migration_bundle.content_type_matcher'
- '@ez_migration_bundle.content_type_group_matcher'
- '@ez_migration_bundle.reference_resolver'
- '@ez_migration_bundle.complex_field_manager'
- '@ez_migration_bundle.helper.sort_converter'
tags:
- { name: ez_migration_bundle.executor }
ez_migration_bundle.executor.content_type_group_manager:
parent: ez_migration_bundle.executor.repository
class: '%ez_migration_bundle.executor.content_type_group_manager.class%'
arguments:
- '@ez_migration_bundle.content_type_group_matcher'
tags:
- { name: ez_migration_bundle.executor }
ez_migration_bundle.executor.language_manager:
class: '%ez_migration_bundle.executor.language_manager.class%'
parent: ez_migration_bundle.executor.repository
tags:
- { name: ez_migration_bundle.executor }
ez_migration_bundle.executor.location_manager:
parent: ez_migration_bundle.executor.repository
class: '%ez_migration_bundle.executor.location_manager.class%'
arguments:
- '@ez_migration_bundle.content_matcher'
- '@ez_migration_bundle.location_matcher'
- '@ez_migration_bundle.helper.sort_converter'
tags:
- { name: ez_migration_bundle.executor }
ez_migration_bundle.executor.object_state_manager:
class: '%ez_migration_bundle.executor.object_state_manager.class%'
parent: ez_migration_bundle.executor.repository
arguments:
- '@ez_migration_bundle.object_state_matcher'
- '@ez_migration_bundle.object_state_group_matcher'
tags:
- { name: ez_migration_bundle.executor }
ez_migration_bundle.executor.object_state_group_manager:
class: '%ez_migration_bundle.executor.object_state_group_manager.class%'
parent: ez_migration_bundle.executor.repository
arguments:
- '@ez_migration_bundle.object_state_group_matcher'
tags:
- { name: ez_migration_bundle.executor }
ez_migration_bundle.executor.role_manager:
class: '%ez_migration_bundle.executor.role_manager.class%'
parent: ez_migration_bundle.executor.repository
arguments:
- '@ez_migration_bundle.role_matcher'
- '@ez_migration_bundle.helper.limitation_converter'
tags:
- { name: ez_migration_bundle.executor }
ez_migration_bundle.executor.section_manager:
class: '%ez_migration_bundle.executor.section_manager.class%'
parent: ez_migration_bundle.executor.repository
arguments:
- '@ez_migration_bundle.section_matcher'
tags:
- { name: ez_migration_bundle.executor }
ez_migration_bundle.executor.tag_manager:
parent: ez_migration_bundle.executor.repository
class: '%ez_migration_bundle.executor.tag_manager.class%'
arguments:
- '@ez_migration_bundle.tag_matcher'
- '@?ezpublish.api.service.tags'
tags:
- { name: ez_migration_bundle.executor }
ez_migration_bundle.executor.user_manager:
parent: ez_migration_bundle.executor.repository
class: '%ez_migration_bundle.executor.user_manager.class%'
arguments:
- '@ez_migration_bundle.user_matcher'
- '@ez_migration_bundle.user_group_matcher'
tags:
- { name: ez_migration_bundle.executor }
ez_migration_bundle.executor.user_group_manager:
parent: ez_migration_bundle.executor.repository
class: '%ez_migration_bundle.executor.user_group_manager.class%'
arguments:
- '@ez_migration_bundle.user_group_matcher'
- '@ez_migration_bundle.role_matcher'
- '@ez_migration_bundle.section_matcher'
tags:
- { name: ez_migration_bundle.executor }
### matchers
ez_migration_bundle.content_matcher:
class: '%ez_migration_bundle.content_matcher.class%'
arguments:
- '@ezpublish.api.repository'
- '@ez_migration_bundle.user_group_matcher'
- '@ez_migration_bundle.section_matcher'
- '@ez_migration_bundle.object_state_matcher'
- '@ez_migration_bundle.user_matcher'
ez_migration_bundle.content_type_matcher:
class: '%ez_migration_bundle.content_type_matcher.class%'
arguments:
- '@ezpublish.api.repository'
ez_migration_bundle.content_type_group_matcher:
class: '%ez_migration_bundle.content_type_group_matcher.class%'
arguments:
- '@ezpublish.api.repository'
ez_migration_bundle.location_matcher:
class: '%ez_migration_bundle.location_matcher.class%'
arguments:
- '@ezpublish.api.repository'
- '@ez_migration_bundle.user_group_matcher'
- '@ez_migration_bundle.section_matcher'
- '@ez_migration_bundle.object_state_matcher'
- '@ez_migration_bundle.user_matcher'
ez_migration_bundle.object_state_matcher:
class: '%ez_migration_bundle.object_state_matcher.class%'
arguments:
- '@ezpublish.api.repository'
ez_migration_bundle.object_state_group_matcher:
class: '%ez_migration_bundle.object_state_group_matcher.class%'
arguments:
- '@ezpublish.api.repository'
ez_migration_bundle.reference_matcher:
class: '%ez_migration_bundle.reference_matcher.class%'
arguments:
- '@ez_migration_bundle.reference_resolver.customreference'
- '@validator'
ez_migration_bundle.role_matcher:
class: '%ez_migration_bundle.role_matcher.class%'
arguments:
- '@ezpublish.api.repository'
ez_migration_bundle.section_matcher:
class: '%ez_migration_bundle.section_matcher.class%'
arguments:
- '@ezpublish.api.repository'
ez_migration_bundle.tag_matcher:
class: '%ez_migration_bundle.tag_matcher.class%'
arguments:
- '@ezpublish.translation_helper'
- '@?ezpublish.api.service.tags'
ez_migration_bundle.user_matcher:
class: '%ez_migration_bundle.user_matcher.class%'
arguments:
- '@ezpublish.api.repository'
ez_migration_bundle.user_group_matcher:
class: '%ez_migration_bundle.user_group_matcher.class%'
arguments:
- '@ezpublish.api.repository'
### field handlers
ez_migration_bundle.complex_field_manager:
class: '%ez_migration_bundle.complex_field_manager.class%'
arguments:
- '@ezpublish.api.service.field_type'
ez_migration_bundle.complex_field:
abstract: true
calls:
- ['setReferenceResolver', ['@ez_migration_bundle.reference_resolver.customreference']]
# NB: you can register handlers for either a field type, using the 'fieldtype' attribute, or for the
# field type of a specific content type by using both 'fieldtype' and 'contenttype' in the tag definition
ez_migration_bundle.complex_field.ezauthor:
parent: ez_migration_bundle.complex_field
class: '%ez_migration_bundle.complex_field.ezauthor.class%'
tags:
- { name: ez_migration_bundle.complex_field, fieldtype: ezauthor, priority: 0 }
ez_migration_bundle.complex_field.ezbinaryfile:
parent: ez_migration_bundle.complex_field
class: '%ez_migration_bundle.complex_field.ezbinaryfile.class%'
arguments:
- "$io.root_dir$"
- "@?ezpublish.core.io.prefix_url_decorator"
tags:
- { name: ez_migration_bundle.complex_field, fieldtype: ezbinaryfile, priority: 0 }
ez_migration_bundle.complex_field.ezboolean:
parent: ez_migration_bundle.complex_field
class: '%ez_migration_bundle.complex_field.ezboolean.class%'
tags:
- { name: ez_migration_bundle.complex_field, fieldtype: ezboolean, priority: 0 }
ez_migration_bundle.complex_field.ezdate:
parent: ez_migration_bundle.complex_field
class: '%ez_migration_bundle.complex_field.ezdate.class%'
tags:
- { name: ez_migration_bundle.complex_field, fieldtype: ezdate, priority: 0 }
ez_migration_bundle.complex_field.ezdatetime:
parent: ez_migration_bundle.complex_field
class: '%ez_migration_bundle.complex_field.ezdatetime.class%'
tags:
- { name: ez_migration_bundle.complex_field, fieldtype: ezdatetime, priority: 0 }
ez_migration_bundle.complex_field.ezimage:
parent: ez_migration_bundle.complex_field
class: '%ez_migration_bundle.complex_field.ezimage.class%'
arguments:
- "$io.root_dir$"
- "@?ezpublish.core.io.prefix_url_decorator"
tags:
- { name: ez_migration_bundle.complex_field, fieldtype: ezimage, priority: 0 }
ez_migration_bundle.complex_field.ezmedia:
parent: ez_migration_bundle.complex_field
class: '%ez_migration_bundle.complex_field.ezmedia.class%'
arguments:
- "$io.root_dir$"
- "@?ezpublish.core.io.prefix_url_decorator"
tags:
- { name: ez_migration_bundle.complex_field, fieldtype: ezmedia, priority: 0 }
ez_migration_bundle.complex_field.ezpage:
parent: ez_migration_bundle.complex_field
class: '%ez_migration_bundle.complex_field.ezpage.class%'
arguments:
- '@ezpublish.fieldType.ezpage.pageService'
tags:
- { name: ez_migration_bundle.complex_field, fieldtype: ezpage, priority: 0 }
ez_migration_bundle.complex_field.ezrelation:
parent: ez_migration_bundle.complex_field
class: '%ez_migration_bundle.complex_field.ezrelation.class%'
arguments:
- '@ez_migration_bundle.content_matcher'
tags:
- { name: ez_migration_bundle.complex_field, fieldtype: ezobjectrelation, priority: 0 }
ez_migration_bundle.complex_field.ezrelationlist:
parent: ez_migration_bundle.complex_field
class: '%ez_migration_bundle.complex_field.ezrelationlist.class%'
arguments:
- '@ez_migration_bundle.content_matcher'
tags:
- { name: ez_migration_bundle.complex_field, fieldtype: ezobjectrelationlist, priority: 0 }
ez_migration_bundle.complex_field.ezrichtext:
parent: ez_migration_bundle.complex_field
class: '%ez_migration_bundle.complex_field.ezrichtext.class%'
arguments:
# if you want to replace custom references in rich text fields, you can replace this with a new service
# built f.e. using the ChainPrefixResolver class
- '@ez_migration_bundle.reference_resolver.customreference'
tags:
- { name: ez_migration_bundle.complex_field, fieldtype: ezrichtext, priority: 0 }
ez_migration_bundle.complex_field.ezselection:
parent: ez_migration_bundle.complex_field
class: '%ez_migration_bundle.complex_field.ezselection.class%'
arguments:
- '@ezpublish.api.repository'
tags:
- { name: ez_migration_bundle.complex_field, fieldtype: ezselection, priority: 0 }
ez_migration_bundle.complex_field.ezxmltext:
parent: ez_migration_bundle.complex_field
class: '%ez_migration_bundle.complex_field.ezxmltext.class%'
arguments:
# if you want to replace custom references in rich text fields, you can replace this with a new service
# built f.e. using the ChainPrefixResolver class
- '@ez_migration_bundle.reference_resolver.customreference'
tags:
- { name: ez_migration_bundle.complex_field, fieldtype: ezxmltext, priority: 0 }
ez_migration_bundle.complex_field.eztags:
parent: ez_migration_bundle.complex_field
class: '%ez_migration_bundle.complex_field.eztags.class%'
arguments:
- '@ez_migration_bundle.tag_matcher'
tags:
- { name: ez_migration_bundle.complex_field, fieldtype: eztags, priority: 0 }
### reference resolvers
# A service that will resolve *any* possible reference. To be used with care
# At the moment is is only used to resolve references in definitions of FieldType settings, and even then, only
# for backwards compatibility
ez_migration_bundle.reference_resolver:
alias: ez_migration_bundle.reference_resolver.chain
ez_migration_bundle.reference_resolver.chain:
class: '%ez_migration_bundle.reference_resolver.chain.class%'
arguments:
-
- '@ez_migration_bundle.reference_resolver.customreference'
- '@ez_migration_bundle.reference_resolver.location'
# not enabled by default for v3, as it might break v1 migrations that don't expect it to be present
#- '@ez_migration_bundle.reference_resolver.content'
- '@ez_migration_bundle.reference_resolver.tag'
# @deprecated
ez_migration_bundle.reference_resolver.content:
class: '%ez_migration_bundle.reference_resolver.content.class%'
arguments:
- '@ez_migration_bundle.content_matcher'
ez_migration_bundle.reference_resolver.location:
class: '%ez_migration_bundle.reference_resolver.location.class%'
arguments:
- '@ez_migration_bundle.location_matcher'
ez_migration_bundle.reference_resolver.tag:
class: '%ez_migration_bundle.reference_resolver.tag.class%'
arguments:
- '@ez_migration_bundle.tag_matcher'
# A service which resolves *only* custom references. As such, it is used in most places
ez_migration_bundle.reference_resolver.customreference:
alias: ez_migration_bundle.reference_resolver.customreference.flexible
ez_migration_bundle.reference_resolver.customreference.base:
class: '%ez_migration_bundle.reference_resolver.customreference.class%'
arguments: []
tags:
- { name: ez_migration_bundle.context_provider, label: reference_resolver_customreference }
# NB: This service will see added to the chain any service tagged as 'ez_migration_bundle.reference_resolver.customreference'
ez_migration_bundle.reference_resolver.customreference.flexible:
class: '%ez_migration_bundle.reference_resolver.chain_prefix.class%'
arguments:
- [ '@ez_migration_bundle.reference_resolver.customreference.base' ]
### misc
ez_migration_bundle.context_handler:
class: '%ez_migration_bundle.context_handler.class%'
arguments:
- '@ez_migration_bundle.context_storage_handler'
lazy: true
# This service is used for the verbose mode when executing migrations on the command line
ez_migration_bundle.step_executed_listener.tracing:
class: '%ez_migration_bundle.step_executed_listener.tracing.class%'
arguments:
- '%ez_migration_bundle.enable_debug_output%'
tags:
- { name: kernel.event_listener, event: ez_migration.step_executed, method: onStepExecuted }
- { name: kernel.event_listener, event: ez_migration.migration_aborted, method: onMigrationAborted }
- { name: kernel.event_listener, event: ez_migration.migration_suspended, method: onMigrationSuspended }
ez_migration_bundle.helper.limitation_converter:
class: '%ez_migration_bundle.helper.limitation_converter.class%'
arguments:
- '%ezpublish.siteaccess.list%'
- '@ez_migration_bundle.location_matcher'
- '@ez_migration_bundle.section_matcher'
- '@ez_migration_bundle.content_type_matcher'
ez_migration_bundle.helper.sort_converter:
class: '%ez_migration_bundle.helper.sort_converter.class%'
ez_migration_bundle.helper.console_io:
class: '%ez_migration_bundle.helper.console_io.class%'
tags:
- { name: kernel.event_listener, event: console.command }