services:
  paragraphs_usage.route_subscriber:
    class: Drupal\paragraphs_usage\Routing\RouteSubscriber
    arguments: [ '@entity_type.manager', '@config.factory' ]
    tags:
      - { name: event_subscriber }
  paragraphs_usage.paragraphs_usage_service:
    class: Drupal\paragraphs_usage\Service\ParagraphsUsageService
    arguments: [ '@entity_type.manager', '@entity_type.bundle.info', '@entity_field.manager' ]
