Drupal investigation

hal.services.yml 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. services:
  2. serializer.normalizer.entity_reference_item.hal:
  3. class: Drupal\hal\Normalizer\EntityReferenceItemNormalizer
  4. arguments: ['@hal.link_manager', '@serializer.entity_resolver']
  5. tags:
  6. - { name: normalizer, priority: 10 }
  7. serializer.normalizer.field_item.hal:
  8. class: Drupal\hal\Normalizer\FieldItemNormalizer
  9. tags:
  10. - { name: normalizer, priority: 10 }
  11. serializer.normalizer.field.hal:
  12. class: Drupal\hal\Normalizer\FieldNormalizer
  13. tags:
  14. - { name: normalizer, priority: 10 }
  15. serializer.normalizer.file_entity.hal:
  16. class: Drupal\hal\Normalizer\FileEntityNormalizer
  17. tags:
  18. - { name: normalizer, priority: 20 }
  19. arguments: ['@entity.manager', '@http_client', '@hal.link_manager', '@module_handler']
  20. serializer.normalizer.entity.hal:
  21. class: Drupal\hal\Normalizer\ContentEntityNormalizer
  22. arguments: ['@hal.link_manager', '@entity.manager', '@module_handler']
  23. tags:
  24. - { name: normalizer, priority: 10 }
  25. serializer.encoder.hal:
  26. class: Drupal\hal\Encoder\JsonEncoder
  27. tags:
  28. - { name: encoder, priority: 10, format: hal_json }
  29. # Link managers.
  30. hal.link_manager:
  31. class: Drupal\hal\LinkManager\LinkManager
  32. arguments: ['@hal.link_manager.type', '@hal.link_manager.relation']
  33. hal.link_manager.type:
  34. class: Drupal\hal\LinkManager\TypeLinkManager
  35. arguments: ['@cache.default', '@module_handler', '@config.factory', '@request_stack', '@entity_type.bundle.info']
  36. hal.link_manager.relation:
  37. class: Drupal\hal\LinkManager\RelationLinkManager
  38. arguments: ['@cache.default', '@entity.manager', '@module_handler', '@config.factory', '@request_stack']