You are here

social_event_an_enroll.services.yml in Open Social 10.0.x

modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.services.yml

File

modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.services.yml
View source
  1. services:
  2. social_event_an_enroll.manager:
  3. class: \Drupal\social_event_an_enroll\EventAnEnrollManager
  4. social_event_an_enroll.overrider:
  5. class: \Drupal\social_event_an_enroll\EventAnEnrollOverride
  6. tags:
  7. - {name: config.factory.override, priority: 5}
  8. social_event_an_enroll.service:
  9. class: Drupal\social_event_an_enroll\EventAnEnrollService
  10. arguments:
  11. - '@current_user'
  12. - '@current_route_match'
  13. - '@database'
  14. # We added a custom context in order to manage cache of enrollment button.
  15. # This is specially for AN enrollment routes.
  16. cache_context.event_an_enroll_route:
  17. class: Drupal\social_event_an_enroll\EventAnEnrollCacheContext
  18. arguments: ['@current_route_match']
  19. tags:
  20. - { name: cache.context }