View source
- services:
- serializer.fb_instant_articles.fbia.encoder:
- class: Drupal\fb_instant_articles\Encoder\InstantArticleEncoder
- tags:
- - { name: encoder, priority: 10, format: 'fbia' }
-
- serializer.fb_instant_articles.fbia.content_entity:
- class: Drupal\fb_instant_articles\Normalizer\InstantArticleContentEntityNormalizer
- arguments: ['@config.factory', '@entity_field.manager', '@entity_type.manager', '@info_parser', '@module_handler', '@language_manager']
- tags:
- - { name: normalizer, priority: 10 }
-
- serializer.fb_instant_articles.fbia.field_item_list:
- class: Drupal\fb_instant_articles\Normalizer\FieldItemListNormalizer
- arguments: ['@renderer', '@fb_instant_articles.transformer', '@config.factory', '@logger.channel.fbia']
- tags:
- - { name: normalizer, priority: 10 }
-
- serializer.fb_instant_articles.fbia_rss.encoder:
- class: Drupal\fb_instant_articles\Encoder\InstantArticleRssEncoder
- arguments: ['@request_stack', '@config.factory']
- tags:
- - { name: encoder, priority: 10, format: 'fbia_rss' }
-
- serializer.fb_instant_articles.fbia_rss.content_entity:
- class: Drupal\fb_instant_articles\Normalizer\InstantArticleRssContentEntityNormalizer
- arguments: ['@config.factory']
- tags:
- - { name: normalizer, priority: 10 }
-
- fb_instant_articles.transformer:
- class: Drupal\fb_instant_articles\Transformer
- arguments: ['@fb_instant_articles.transformer_rules_manager', '@config.factory']
- shared: false
-
- fb_instant_articles.transformer_rules_manager:
- class: Drupal\fb_instant_articles\TransformerRulesManager
- arguments: ['@module_handler']
-
- fb_instant_articles.drupal_client:
- class: Drupal\fb_instant_articles\DrupalClient
- arguments: ['@config.factory']
- calls:
- - [setSerializer, ['@serializer']]
- - [setLogger, ['@logger.channel.fbia']]
- - [setIaNormalizer, ['@serializer.fb_instant_articles.fbia.content_entity']]
- factory: fb_instant_articles.drupal_client_factory:create
-
- fb_instant_articles.drupal_client_factory:
- class: Drupal\fb_instant_articles\DrupalClientFactory
-
- logger.channel.fbia:
- parent: logger.channel_base
- arguments: ['fbia']