You are here

fb_instant_articles.services.yml in Facebook Instant Articles 8.2

Same filename and directory in other branches
  1. 3.x fb_instant_articles.services.yml

File

fb_instant_articles.services.yml
View source
  1. services:
  2. serializer.fb_instant_articles.fbia.encoder:
  3. class: Drupal\fb_instant_articles\Encoder\InstantArticleEncoder
  4. tags:
  5. - { name: encoder, priority: 10, format: 'fbia' }
  6. serializer.fb_instant_articles.fbia.content_entity:
  7. class: Drupal\fb_instant_articles\Normalizer\InstantArticleContentEntityNormalizer
  8. arguments: ['@config.factory', '@entity_field.manager', '@entity_type.manager', '@info_parser', '@module_handler', '@language_manager']
  9. tags:
  10. - { name: normalizer, priority: 10 }
  11. serializer.fb_instant_articles.fbia.field_item_list:
  12. class: Drupal\fb_instant_articles\Normalizer\FieldItemListNormalizer
  13. arguments: ['@renderer', '@fb_instant_articles.transformer', '@config.factory', '@logger.channel.fbia']
  14. tags:
  15. - { name: normalizer, priority: 10 }
  16. serializer.fb_instant_articles.fbia_rss.encoder:
  17. class: Drupal\fb_instant_articles\Encoder\InstantArticleRssEncoder
  18. arguments: ['@request_stack', '@config.factory']
  19. tags:
  20. - { name: encoder, priority: 10, format: 'fbia_rss' }
  21. serializer.fb_instant_articles.fbia_rss.content_entity:
  22. class: Drupal\fb_instant_articles\Normalizer\InstantArticleRssContentEntityNormalizer
  23. arguments: ['@config.factory']
  24. tags:
  25. - { name: normalizer, priority: 10 }
  26. fb_instant_articles.transformer:
  27. class: Drupal\fb_instant_articles\Transformer
  28. arguments: ['@fb_instant_articles.transformer_rules_manager', '@config.factory']
  29. shared: false
  30. fb_instant_articles.transformer_rules_manager:
  31. class: Drupal\fb_instant_articles\TransformerRulesManager
  32. arguments: ['@module_handler']
  33. fb_instant_articles.drupal_client:
  34. class: Drupal\fb_instant_articles\DrupalClient
  35. arguments: ['@config.factory']
  36. calls:
  37. - [setSerializer, ['@serializer']]
  38. - [setLogger, ['@logger.channel.fbia']]
  39. - [setIaNormalizer, ['@serializer.fb_instant_articles.fbia.content_entity']]
  40. factory: fb_instant_articles.drupal_client_factory:create
  41. fb_instant_articles.drupal_client_factory:
  42. class: Drupal\fb_instant_articles\DrupalClientFactory
  43. logger.channel.fbia:
  44. parent: logger.channel_base
  45. arguments: ['fbia']