You are here

lightning_scheduler.services.yml in Lightning Scheduler 8

File

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. # To facilitate testing, decorate the datetime.time service with an
  11. # implementation that can return an arbitrary request time from state.
  12. lightning_scheduler.datetime.time:
  13. public: false
  14. class: 'Drupal\lightning_scheduler\Time'
  15. decorates: datetime.time
  16. arguments:
  17. - '@request_stack'
  18. - '@state'
  19. # Workaround for serializing decorated services. Remove when either
  20. # https://www.drupal.org/project/drupal/issues/2896993 or
  21. # https://www.drupal.org/project/drupal/issues/2531564 are fixed.
  22. properties:
  23. _serviceId: datetime.time