You are here

tome_sync.services.yml in Tome 8

modules/tome_sync/tome_sync.services.yml

File

modules/tome_sync/tome_sync.services.yml
View source
  1. services:
  2. tome_sync.storage.content:
  3. class: Drupal\tome_sync\JsonFileStorage
  4. factory: Drupal\tome_sync\JsonFileStorageFactory::getContent
  5. tome_sync.exporter:
  6. class: Drupal\tome_sync\Exporter
  7. arguments: ['@tome_sync.storage.content', '@serializer', '@entity_type.manager', '@event_dispatcher', '@account_switcher', '@tome_sync.file_sync', '@file_system']
  8. tome_sync.importer:
  9. class: Drupal\tome_sync\Importer
  10. arguments: ['@tome_sync.storage.content', '@serializer', '@entity_type.manager', '@event_dispatcher', '@account_switcher', '@tome_sync.file_sync', '@file_system']
  11. tome_sync.file_sync:
  12. class: Drupal\tome_sync\FileSync
  13. arguments: ['@file_system']
  14. tome_sync.content_hasher:
  15. class: Drupal\tome_sync\ContentHasher
  16. arguments: ['@database', '@tome_sync.storage.content']
  17. tome_sync.content_hasher_event_subscriber:
  18. class: Drupal\tome_sync\EventSubscriber\ContentHasherEventSubscriber
  19. arguments: ['@tome_sync.content_hasher', '@tome_sync.storage.content']
  20. tags:
  21. - { name: event_subscriber }
  22. tome_sync.config_event_subscriber:
  23. class: Drupal\tome_sync\EventSubscriber\ConfigEventSubscriber
  24. arguments: ['@config.storage.sync']
  25. tags:
  26. - { name: event_subscriber }
  27. tome_sync.clean_files_command:
  28. class: Drupal\tome_sync\Commands\CleanFilesCommand
  29. arguments: ['@tome_sync.storage.content', '@config.storage.sync', '@tome_sync.file_sync']
  30. tags:
  31. - { name: console.command }
  32. - { name: drupal.command }
  33. tome_sync.export_command:
  34. class: Drupal\tome_sync\Commands\ExportCommand
  35. arguments: ['@tome_sync.exporter', '@entity_type.manager', '@event_dispatcher']
  36. tags:
  37. - { name: console.command }
  38. - { name: drupal.command }
  39. tome_sync.export_content_command:
  40. class: Drupal\tome_sync\Commands\ExportContentCommand
  41. arguments: ['@tome_sync.exporter', '@entity_type.manager', '@event_dispatcher']
  42. tags:
  43. - { name: console.command }
  44. - { name: drupal.command }
  45. tome_sync.import_command:
  46. class: Drupal\tome_sync\Commands\ImportCommand
  47. arguments: ['@tome_sync.importer', '@entity_type.manager', '@state']
  48. tags:
  49. - { name: console.command }
  50. - { name: drupal.command }
  51. tome_sync.delete_content_command:
  52. class: Drupal\tome_sync\Commands\DeleteContentCommand
  53. arguments: ['@tome_sync.importer', '@entity_type.manager', '@state', '@config.installer']
  54. tags:
  55. - { name: console.command }
  56. - { name: drupal.command }
  57. tome_sync.import_partial_command:
  58. class: Drupal\tome_sync\Commands\ImportPartialCommand
  59. arguments: ['@tome_sync.importer', '@entity_type.manager', '@state', '@tome_sync.content_hasher']
  60. tags:
  61. - { name: console.command }
  62. - { name: drupal.command }
  63. tome_sync.import_complete_command:
  64. class: Drupal\tome_sync\Commands\ImportCompleteCommand
  65. arguments: ['@event_dispatcher']
  66. tags:
  67. - { name: console.command }
  68. - { name: drupal.command }
  69. tome_sync.import_content_command:
  70. class: Drupal\tome_sync\Commands\ImportContentCommand
  71. arguments: ['@tome_sync.importer', '@entity_type.manager', '@state']
  72. tags:
  73. - { name: console.command }
  74. - { name: drupal.command }
  75. serializer.normalizer.entity_reference_revision_tome_sync:
  76. class: Drupal\tome_sync\Normalizer\EntityReferenceRevisionItemNormalizer
  77. tags:
  78. - { name: normalizer, priority: 21 }
  79. arguments: ['@entity.repository']
  80. serializer.normalizer.entity_reference_tome_sync:
  81. class: Drupal\tome_sync\Normalizer\EntityReferenceItemNormalizer
  82. tags:
  83. - { name: normalizer, priority: 10 }
  84. arguments: ['@entity.repository']
  85. serializer.normalizer.pathauto_tome_sync:
  86. class: Drupal\tome_sync\Normalizer\PathautoItemNormalizer
  87. tags:
  88. - { name: normalizer, priority: 9 }
  89. arguments: ['@entity.repository']
  90. serializer.normalizer.path_tome_sync:
  91. class: Drupal\tome_sync\Normalizer\PathItemNormalizer
  92. tags:
  93. - { name: normalizer, priority: 8 }
  94. arguments: ['@entity.repository']
  95. serializer.normalizer.field_tome_sync:
  96. class: Drupal\tome_sync\Normalizer\FieldItemNormalizer
  97. tags:
  98. - { name: normalizer, priority: 7 }
  99. arguments: ['@entity.repository']
  100. serializer.normalizer.user_entity_tome_sync:
  101. class: Drupal\tome_sync\Normalizer\UserEntityNormalizer
  102. tags:
  103. - { name: normalizer, priority: 2 }
  104. arguments: ['@entity_type.manager', '@entity_type.repository', '@entity_field.manager']
  105. serializer.normalizer.content_entity_tome_sync:
  106. class: Drupal\tome_sync\Normalizer\ContentEntityNormalizer
  107. tags:
  108. - { name: normalizer, priority: 1 }
  109. arguments: ['@entity_type.manager', '@entity_type.repository', '@entity_field.manager']
  110. serializer.normalizer.path_alias_tome_sync:
  111. class: Drupal\tome_sync\Normalizer\PathAliasNormalizer
  112. tags:
  113. - { name: normalizer, priority: 2 }
  114. arguments: ['@entity_type.manager', '@entity_type.repository', '@entity_field.manager', '@entity.repository']
  115. serializer.normalizer.uri_tome_sync:
  116. class: Drupal\tome_sync\Normalizer\UriNormalizer
  117. tags:
  118. - { name: normalizer, priority: 6 }
  119. arguments: ['@entity_type.manager', '@entity.repository']

Services

Namesort descending Description
serializer.normalizer.content_entity_tome_sync Drupal\tome_sync\Normalizer\ContentEntityNormalizer
serializer.normalizer.entity_reference_revision_tome_sync Drupal\tome_sync\Normalizer\EntityReferenceRevisionItemNormalizer
serializer.normalizer.entity_reference_tome_sync Drupal\tome_sync\Normalizer\EntityReferenceItemNormalizer
serializer.normalizer.field_tome_sync Drupal\tome_sync\Normalizer\FieldItemNormalizer
serializer.normalizer.pathauto_tome_sync Drupal\tome_sync\Normalizer\PathautoItemNormalizer
serializer.normalizer.path_alias_tome_sync Drupal\tome_sync\Normalizer\PathAliasNormalizer
serializer.normalizer.path_tome_sync Drupal\tome_sync\Normalizer\PathItemNormalizer
serializer.normalizer.uri_tome_sync Drupal\tome_sync\Normalizer\UriNormalizer
serializer.normalizer.user_entity_tome_sync Drupal\tome_sync\Normalizer\UserEntityNormalizer
tome_sync.clean_files_command Drupal\tome_sync\Commands\CleanFilesCommand
tome_sync.config_event_subscriber Drupal\tome_sync\EventSubscriber\ConfigEventSubscriber
tome_sync.content_hasher Drupal\tome_sync\ContentHasher
tome_sync.content_hasher_event_subscriber Drupal\tome_sync\EventSubscriber\ContentHasherEventSubscriber
tome_sync.delete_content_command Drupal\tome_sync\Commands\DeleteContentCommand
tome_sync.exporter Drupal\tome_sync\Exporter
tome_sync.export_command Drupal\tome_sync\Commands\ExportCommand
tome_sync.export_content_command Drupal\tome_sync\Commands\ExportContentCommand
tome_sync.file_sync Drupal\tome_sync\FileSync
tome_sync.importer Drupal\tome_sync\Importer
tome_sync.import_command Drupal\tome_sync\Commands\ImportCommand
tome_sync.import_complete_command Drupal\tome_sync\Commands\ImportCompleteCommand
tome_sync.import_content_command Drupal\tome_sync\Commands\ImportContentCommand
tome_sync.import_partial_command Drupal\tome_sync\Commands\ImportPartialCommand
tome_sync.storage.content Drupal\tome_sync\JsonFileStorage