services:
  group.membership:
    class: Drupal\farm_group\GroupMembership
    arguments:
      [ '@farm.log_query', '@entity_type.manager', '@datetime.time', '@database' ]
  farm_group.log_event_subscriber:
    class: Drupal\farm_group\EventSubscriber\LogEventSubscriber
    arguments:
      [ '@cache_tags.invalidator', '@datetime.time', '@group.membership' ]
    tags:
      - { name: 'event_subscriber' }
  farm_group.route_subscriber:
    class: Drupal\farm_group\Routing\RouteSubscriber
    tags:
      - { name: event_subscriber }
  farm_group.group_members_access:
    class: Drupal\farm_group\Access\FarmGroupMembersViewsAccessCheck
    arguments: [ '@entity_type.manager' ]
    tags:
      - { name: access_check, applies_to: _group_members_access }
