services:
  logger.channel.search_api_saved_searches:
    parent: logger.channel_base
    arguments: ['search_api_saved_searches']

  plugin.manager.search_api_saved_searches.notification:
    class: Drupal\search_api_saved_searches\Notification\NotificationPluginManager
    parent: default_plugin_manager

  search_api_saved_searches.email_queue:
    class: Drupal\search_api_saved_searches\Service\EmailQueue
    arguments: ['@plugin.manager.mail']
    tags:
      - { name: needs_destruction }

  search_api_saved_searches.new_results_check:
    class: Drupal\search_api_saved_searches\Service\NewResultsCheck
    arguments: ['@entity_type.manager', '@config.factory', '@datetime.time', '@logger.channel.search_api_saved_searches']
