forked from sean-e-dietrich/content_sync
-
Notifications
You must be signed in to change notification settings - Fork 2
/
content_sync.services.yml
executable file
·87 lines (87 loc) · 4.03 KB
/
content_sync.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
services:
logger.cslog:
class: Drupal\content_sync\Logger\ContentSyncLog
arguments: ['@database', '@logger.log_message_parser']
tags:
- { name: logger }
- { name: backend_overridable }
content_sync.snaphoshot:
class: Drupal\content_sync\Form\ContentExportForm
arguments: ['@entity_type.manager','@content_sync.exporter','@content_sync.manager','@file_system']
content.storage.staging:
class: Drupal\Core\Config\FileStorage
factory: Drupal\content_sync\Content\ContentFileStorageFactory::getSync
content.storage.sync:
alias: content.storage.staging
content.storage:
class: Drupal\Core\Config\CachedStorage
arguments: ['@content.storage.active', '@cache.content']
content.storage.active:
class: Drupal\Core\Config\DatabaseStorage
arguments: ['@database', 'cs_db_snapshot']
public: false
tags:
- { name: backend_overridable }
cache.content:
class: Drupal\Core\Cache\CacheBackendInterface
tags:
- { name: cache.bin, default_backend: cache.backend.chainedfast }
factory: cache_factory:get
arguments: [content]
# content_sync.content_subscriber:
# class: Drupal\content_sync\EventSubscriber\ContentSyncEvents
# tags:
# - { name: event_subscriber }
content_sync.help_manager:
class: Drupal\content_sync\ContentSyncHelpManager
arguments: ['@current_user', '@config.factory', '@module_handler', '@state', '@path.matcher']
content_sync.exporter:
class: Drupal\content_sync\Exporter\ContentExporter
arguments: ['@serializer']
content_sync.importer:
class: Drupal\content_sync\Importer\ContentImporter
arguments: ['@serializer', '@entity_type.manager']
content_sync.manager:
class: Drupal\content_sync\ContentSyncManager
arguments: ['@serializer', '@entity_type.manager','@content_sync.exporter', '@content_sync.importer']
content_sync.normalizer.content_entity:
class: Drupal\content_sync\Normalizer\ContentEntityNormalizer
arguments: ['@entity_type.manager', '@entity_type.repository', '@entity_field.manager', '@entity_type.bundle.info', '@entity.repository', '@plugin.manager.sync_normalizer_decorator']
tags:
- { name: normalizer, priority: 6 }
content_sync.normalizer.file_entity:
class: Drupal\content_sync\Normalizer\FileEntityNormalizer
arguments: ['@entity_type.manager', '@entity_type.repository', '@entity_field.manager', '@entity_type.bundle.info', '@entity.repository', '@plugin.manager.sync_normalizer_decorator', '@file_system', '@file_url_generator']
tags:
- { name: normalizer, priority: 7 }
content_sync.normalizer.user_entity:
class: Drupal\content_sync\Normalizer\UserEntityNormalizer
arguments: ['@entity_type.manager', '@entity_type.repository', '@entity_field.manager', '@entity_type.bundle.info', '@entity.repository', '@plugin.manager.sync_normalizer_decorator']
tags:
- { name: normalizer, priority: 7 }
content_sync.normalizer.text_item:
class: Drupal\content_sync\Normalizer\TextItemNormalizer
tags:
- { name: normalizer, priority: 10 }
content_sync.normalizer.image_item:
class: Drupal\content_sync\Normalizer\ImageItemNormalizer
tags:
- { name: normalizer, priority: 9 }
arguments: ['@entity.repository']
plugin.manager.sync_normalizer_decorator:
class: Drupal\content_sync\Plugin\SyncNormalizerDecoratorManager
parent: default_plugin_manager
yaml_serialization.encoder.yaml:
class: Drupal\content_sync\Encoder\YamlEncoder
arguments: ["@serialization.yaml"]
tags:
- { name: encoder, format: yaml }
content_sync.normalizer.entity_reference_field_item:
class: Drupal\content_sync\Normalizer\EntityReferenceFieldItemNormalizer
tags:
# Set the priority lower than the hal entity reference field item
# normalizer, so that we do not replace that for hal_json but higher than
# this modules generic field item normalizer.
# @todo Find a better way for this in https://www.drupal.org/node/2575761.
- { name: normalizer, priority: 9 }
arguments: ['@entity.repository']