rules.services.yml

rules.services.yml

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. # cspell:ignore ruleslog
  33. logger.ruleslog:
  34. class: Drupal\rules\Logger\RulesLog
  35. arguments: ['@event_dispatcher', '@logger.log_message_parser']
  36. tags:
  37. - { name: logger }
  38. rules.event_subscriber:
  39. class: Drupal\rules\EventSubscriber\GenericEventSubscriber
  40. arguments: ['@entity_type.manager', '@plugin.manager.rules_event', '@rules.component_repository', '@logger.channel.rules_debug']
  41. tags:
  42. - { name: event_subscriber }
  43. rules.redirect_event_subscriber:
  44. class: Drupal\rules\EventSubscriber\RedirectEventSubscriber
  45. tags:
  46. - { name: event_subscriber }
  47. rules.component_repository:
  48. class: Drupal\rules\Engine\RulesComponentRepository
  49. arguments: ['@cache.rules', '@language_manager']
  50. tags:
  51. - { name: service_collector, tag: rules.component_resolver, call: addComponentResolver }
  52. rules.component_resolver.component_config:
  53. class: Drupal\rules\ComponentResolver\ComponentConfigResolver
  54. arguments: ['@entity_type.manager']
  55. tags:
  56. - { name: rules.component_resolver, resolver_name: rules_component }
  57. rules.component_resolver.event_component:
  58. class: Drupal\rules\ComponentResolver\EventComponentResolver
  59. arguments: ['@entity_type.manager', '@plugin.manager.rules_expression']
  60. tags:
  61. - { name: rules.component_resolver, resolver_name: rules_event }
  62. rules.ui_route_enhancer:
  63. class: Drupal\rules\Routing\RulesUiRouteEnhancer
  64. arguments: ['@plugin.manager.rules_ui']
  65. tags:
  66. - { name: route_enhancer }
  67. rules.ui_route_subscriber:
  68. class: Drupal\rules\Routing\RulesUiRouteSubscriber
  69. arguments: ['@plugin.manager.rules_ui']
  70. tags:
  71. - { name: event_subscriber }
  72. rules.current_path_context:
  73. class: Drupal\rules\ContextProvider\CurrentPathContext
  74. arguments: ['@path.current']
  75. tags:
  76. - { name: context_provider }
  77. rules.current_date_context:
  78. class: Drupal\rules\ContextProvider\CurrentDateContext
  79. arguments: ['@datetime.time']
  80. tags:
  81. - { name: context_provider }
  82. rules.site_context:
  83. class: Drupal\rules\ContextProvider\SiteContext
  84. arguments: ['@config.factory']
  85. tags:
  86. - { name: context_provider }

Services

Title Deprecated Summary
cache.rules Drupal\Core\Cache\CacheBackendInterface
logger.channel.rules
logger.channel.rules_debug Drupal\rules\Logger\RulesDebugLoggerChannel
logger.ruleslog Drupal\rules\Logger\RulesLog
logger.rules_debug_log Drupal\rules\Logger\RulesDebugLog
plugin.manager.rules_action Drupal\rules\Core\RulesActionManager
plugin.manager.rules_data_processor Drupal\rules\Context\DataProcessorManager
plugin.manager.rules_event Drupal\rules\Core\RulesEventManager
plugin.manager.rules_expression Drupal\rules\Engine\ExpressionManager
plugin.manager.rules_ui Drupal\rules\Ui\RulesUiManager
rules.component_repository Drupal\rules\Engine\RulesComponentRepository
rules.component_resolver.component_config Drupal\rules\ComponentResolver\ComponentConfigResolver
rules.component_resolver.event_component Drupal\rules\ComponentResolver\EventComponentResolver
rules.current_date_context Drupal\rules\ContextProvider\CurrentDateContext
rules.current_path_context Drupal\rules\ContextProvider\CurrentPathContext
rules.event_subscriber Drupal\rules\EventSubscriber\GenericEventSubscriber
rules.redirect_event_subscriber Drupal\rules\EventSubscriber\RedirectEventSubscriber
rules.site_context Drupal\rules\ContextProvider\SiteContext
rules.ui_route_enhancer Drupal\rules\Routing\RulesUiRouteEnhancer
rules.ui_route_subscriber Drupal\rules\Routing\RulesUiRouteSubscriber