You are here

lightning_scheduler.services.yml in Lightning Workflow 8.3

Same filename and directory in other branches
  1. 8.2 modules/lightning_scheduler/lightning_scheduler.services.yml
modules/lightning_scheduler/lightning_scheduler.services.yml

File

modules/lightning_scheduler/lightning_scheduler.services.yml
View source
  1. services:
  2. lightning_scheduler.transition_manager:
  3. class: 'Drupal\lightning_scheduler\TransitionManager'
  4. arguments:
  5. - '@content_moderation.moderation_information'
  6. - '@current_user'
  7. - '@entity_type.manager'
  8. - '@logger.channel.cron'
  9. - '@string_translation'
  10. lightning_scheduler.migrator:
  11. class: 'Drupal\lightning_scheduler\Migrator'
  12. arguments:
  13. - '@entity_type.manager'
  14. - '@database'
  15. - '@state'
  16. - '@messenger'
  17. - '@string_translation'
  18. # To facilitate testing, decorate the datetime.time service with an
  19. # implementation that can return an arbitrary request time from state.
  20. lightning_scheduler.datetime.time:
  21. public: false
  22. class: 'Drupal\lightning_scheduler\Time'
  23. decorates: datetime.time
  24. arguments:
  25. - '@request_stack'
  26. - '@state'
  27. # Workaround for serializing decorated services. Remove when either
  28. # https://www.drupal.org/project/drupal/issues/2896993 or
  29. # https://www.drupal.org/project/drupal/issues/2531564 are fixed.
  30. properties:
  31. _serviceId: datetime.time