You are here

rules.services.yml in Rules 8.3

File

rules.services.yml
View source
  1. services:
  2. cache.rules:
  3. class: Drupal\Core\Cache\CacheBackendInterface
  4. factory: cache_factory:get
  5. arguments: [rules]
  6. tags:
  7. - { name: cache.bin }
  8. plugin.manager.rules_expression:
  9. class: Drupal\rules\Engine\ExpressionManager
  10. arguments: ['@container.namespaces', '@module_handler', '@uuid']
  11. plugin.manager.rules_action:
  12. class: Drupal\rules\Core\RulesActionManager
  13. parent: default_plugin_manager
  14. plugin.manager.rules_event:
  15. class: Drupal\rules\Core\RulesEventManager
  16. arguments: ['@module_handler', '@entity_type.bundle.info']
  17. plugin.manager.rules_data_processor:
  18. class: Drupal\rules\Context\DataProcessorManager
  19. arguments: ['@container.namespaces', '@module_handler']
  20. plugin.manager.rules_ui:
  21. class: Drupal\rules\Ui\RulesUiManager
  22. arguments: ['@module_handler']
  23. logger.channel.rules:
  24. parent: logger.channel_base
  25. arguments: ['rules']
  26. logger.channel.rules_debug:
  27. class: Drupal\rules\Logger\RulesDebugLoggerChannel
  28. arguments: ['@logger.rules_debug_log', '@config.factory']
  29. logger.rules_debug_log:
  30. class: Drupal\rules\Logger\RulesDebugLog
  31. arguments: ['@session']
  32. logger.ruleslog:
  33. class: Drupal\rules\Logger\RulesLog
  34. arguments: ['@event_dispatcher', '@logger.log_message_parser']
  35. tags:
  36. - { name: logger }
  37. rules.event_subscriber:
  38. class: Drupal\rules\EventSubscriber\GenericEventSubscriber
  39. arguments: ['@entity_type.manager', '@plugin.manager.rules_event', '@rules.component_repository', '@logger.channel.rules_debug']
  40. tags:
  41. - { name: event_subscriber }
  42. rules.redirect_event_subscriber:
  43. class: Drupal\rules\EventSubscriber\RedirectEventSubscriber
  44. tags:
  45. - { name: event_subscriber }
  46. rules.component_repository:
  47. class: Drupal\rules\Engine\RulesComponentRepository
  48. arguments: ['@cache.rules', '@language_manager']
  49. tags:
  50. - { name: service_collector, tag: rules.component_resolver, call: addComponentResolver }
  51. rules.component_resolver.component_config:
  52. class: Drupal\rules\ComponentResolver\ComponentConfigResolver
  53. arguments: ['@entity_type.manager']
  54. tags:
  55. - { name: rules.component_resolver, resolver_name: rules_component }
  56. rules.component_resolver.event_component:
  57. class: Drupal\rules\ComponentResolver\EventComponentResolver
  58. arguments: ['@entity_type.manager', '@plugin.manager.rules_expression']
  59. tags:
  60. - { name: rules.component_resolver, resolver_name: rules_event }
  61. rules.ui_route_enhancer:
  62. class: Drupal\rules\Routing\RulesUiRouteEnhancer
  63. arguments: ['@plugin.manager.rules_ui']
  64. tags:
  65. - { name: route_enhancer }
  66. rules.ui_route_subscriber:
  67. class: Drupal\rules\Routing\RulesUiRouteSubscriber
  68. arguments: ['@plugin.manager.rules_ui']
  69. tags:
  70. - { name: event_subscriber }
  71. rules.current_path_context:
  72. class: Drupal\rules\ContextProvider\CurrentPathContext
  73. arguments: ['@path.current']
  74. tags:
  75. - { name: context_provider }
  76. rules.current_date_context:
  77. class: Drupal\rules\ContextProvider\CurrentDateContext
  78. arguments: ['@datetime.time']
  79. tags:
  80. - { name: context_provider }
  81. rules.site_context:
  82. class: Drupal\rules\ContextProvider\SiteContext
  83. arguments: ['@config.factory']
  84. tags:
  85. - { name: context_provider }