You are here

simplenews.services.yml in Simplenews 8.2

Same filename and directory in other branches
  1. 8 simplenews.services.yml
  2. 3.x simplenews.services.yml

File

simplenews.services.yml
View source
  1. services:
  2. plugin.manager.simplenews_recipient_handler:
  3. class: Drupal\simplenews\RecipientHandler\RecipientHandlerManager
  4. parent: default_plugin_manager
  5. simplenews.spool_storage:
  6. class: Drupal\simplenews\Spool\SpoolStorage
  7. arguments: ['@database', '@lock', '@config.factory', '@module_handler', '@plugin.manager.simplenews_recipient_handler']
  8. logger.channel.simplenews:
  9. parent: logger.channel_base
  10. arguments: ['simplenews']
  11. simplenews.mailer:
  12. class: Drupal\simplenews\Mail\Mailer
  13. arguments: ['@simplenews.spool_storage', '@plugin.manager.mail', '@state', '@logger.channel.simplenews', '@account_switcher', '@lock', '@config.factory', '@entity_type.manager', '@language_manager', '@simplenews.mail_cache', '@module_handler']
  14. simplenews.mail_builder:
  15. class: Drupal\simplenews\Mail\MailBuilder
  16. arguments: ['@token', '@config.factory', '@simplenews.subscription_manager']
  17. simplenews.subscription_manager:
  18. class: Drupal\simplenews\Subscription\SubscriptionManager
  19. arguments: ['@language_manager', '@config.factory', '@simplenews.mailer', '@token', '@logger.channel.simplenews', '@current_user']
  20. tags:
  21. - { name: needs_destruction }
  22. simplenews.mail_cache:
  23. class: Drupal\simplenews\Mail\MailCacheBuild
  24. simplenews.migration_subscriber:
  25. class: Drupal\simplenews\EventSubscriber\MigrationSubscriber
  26. arguments: ['@entity_field.manager', '@entity_display.repository']
  27. tags:
  28. - { name: event_subscriber }