You are here

workspace.services.yml in Workspace 8

Same filename and directory in other branches
  1. 8.2 workspace.services.yml

File

workspace.services.yml
View source
  1. services:
  2. workspace.replicator_manager:
  3. class: Drupal\workspace\ReplicatorManager
  4. arguments: ['@workspace.conflict_tracker', '@event_dispatcher', '@queue']
  5. tags:
  6. - { name: service_collector, tag: workspace_replicator, call: addReplicator}
  7. workspace.internal_replicator:
  8. class: Drupal\workspace\InternalReplicator
  9. arguments: ['@workspace.manager', '@entity_type.manager', '@replication.changes_factory', '@replication.revisiondiff_factory', '@multiversion.entity_index.rev', '@serializer', '@logger.factory']
  10. tags:
  11. - {name: workspace_replicator, priority: 10}
  12. workspace.entity_type_info:
  13. class: Drupal\workspace\EntityTypeInfo
  14. arguments: ['@multiversion.manager']
  15. workspace.entity_operations:
  16. class: Drupal\workspace\EntityOperations
  17. arguments: ['@multiversion.manager', '@entity_type.manager', '@queue']
  18. workspace.toolbar:
  19. class: Drupal\workspace\Toolbar
  20. arguments: ['@entity_type.manager', '@workspace.manager', '@form_builder', '@current_user']
  21. workspace.route_subscriber:
  22. class: Drupal\workspace\Routing\RouteSubscriber
  23. arguments: ['@multiversion.manager']
  24. tags:
  25. - { name: event_subscriber }
  26. workspace.paramconverter.entity_revision:
  27. class: Drupal\workspace\ParamConverter\EntityRevisionConverter
  28. arguments: ['@entity_type.manager', '@entity.repository']
  29. tags:
  30. - { name: paramconverter, priority: 30 }
  31. workspace.workbench_moderation_subscriber:
  32. class: Drupal\workspace\EventSubscriber\WorkbenchModerationSubscriber
  33. arguments: ['@entity_type.manager', '@workspace.replicator_manager']
  34. tags:
  35. - { name: event_subscriber }
  36. workspace.replication_finished:
  37. class: Drupal\workspace\EventSubscriber\ReplicationFinished
  38. arguments: ['@entity_type.manager', '@workspace.manager', '@?plugin.manager.alias_type', '@?pathauto.generator']
  39. tags:
  40. - { name: event_subscriber }
  41. workspace.replication_config_route_subscriber:
  42. class: Drupal\workspace\EventSubscriber\ReplicationConfigRouteSubscriber
  43. tags:
  44. - { name: event_subscriber }
  45. workspace.entity_access:
  46. class: Drupal\workspace\EntityAccess
  47. arguments: ['@entity_type.manager', '@workspace.manager', '%workspace.default%']
  48. access_check.workspace_view:
  49. class: Drupal\workspace\Access\WorkspaceViewCheck
  50. tags:
  51. - { name: access_check, applies_to: _workspace_view }