social_event_an_enroll.services.yml in Open Social 10.0.x
Same filename and directory in other branches
- 8.9 modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.services.yml
- 8.3 modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.services.yml
- 8.4 modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.services.yml
- 8.5 modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.services.yml
- 8.6 modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.services.yml
- 8.7 modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.services.yml
- 8.8 modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.services.yml
- 10.3.x modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.services.yml
- 10.1.x modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.services.yml
- 10.2.x modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.services.yml
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.ymlView source
- services:
- social_event_an_enroll.manager:
- class: \Drupal\social_event_an_enroll\EventAnEnrollManager
- social_event_an_enroll.overrider:
- class: \Drupal\social_event_an_enroll\EventAnEnrollOverride
- tags:
- - {name: config.factory.override, priority: 5}
- social_event_an_enroll.service:
- class: Drupal\social_event_an_enroll\EventAnEnrollService
- arguments:
- - '@current_user'
- - '@current_route_match'
- - '@database'
-
- # We added a custom context in order to manage cache of enrollment button.
- # This is specially for AN enrollment routes.
- cache_context.event_an_enroll_route:
- class: Drupal\social_event_an_enroll\EventAnEnrollCacheContext
- arguments: ['@current_route_match']
- tags:
- - { name: cache.context }