heartbeat.services.yml 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. services:
  2. heartbeat.heartbeattype:
  3. class: Drupal\heartbeat\HeartbeatTypeServices
  4. arguments: ['@entity_type.manager', '@entity_type.bundle.info', '@entity.query']
  5. heartbeatstream:
  6. class: Drupal\heartbeat\HeartbeatStreamServices
  7. arguments: ["@entity_type.manager", "@entity_type.repository", '@entity.query', '@config.factory', '@database']
  8. heartbeatstreamalt:
  9. class: Drupal\heartbeat\HeartbeatAltServices
  10. arguments: ['@entity.query', '@entity.manager', '@entity_type.manager', '@entity_type.repository', '@heartbeat.heartbeattype']
  11. heartbeat:
  12. class: Drupal\heartbeat\HeartbeatService
  13. arguments: ['@entity_type.manager', '@entity.query', '@heartbeatstream']
  14. # friendship:
  15. # class: Drupal\heartbeat\FriendshipService
  16. # arguments:
  17. heartbeat.event:
  18. class: Drupal\heartbeat\EventSubscriber\HeartbeatEventSubscriber
  19. arguments: ['@flag', '@heartbeat.heartbeattype', '@heartbeatstream', '@heartbeat']
  20. tags:
  21. - { name: event_subscriber }
  22. heartbeat.route_subscriber:
  23. class: Drupal\heartbeat\Routing\HeartbeatRouteSubscriber
  24. tags:
  25. - { name: event_subscriber }