You are here

jsonapi_extras.services.yml in JSON:API Extras 8.3

Same filename and directory in other branches
  1. 8 jsonapi_extras.services.yml
  2. 8.2 jsonapi_extras.services.yml

File

jsonapi_extras.services.yml
View source
  1. services:
  2. jsonapi_extras.resource_type.repository:
  3. public: false
  4. class: Drupal\jsonapi_extras\ResourceType\ConfigurableResourceTypeRepository
  5. decorates: jsonapi.resource_type.repository
  6. parent: jsonapi.resource_type.repository
  7. calls:
  8. - [setEntityRepository, ['@entity.repository']]
  9. - [setEnhancerManager, ['@plugin.manager.resource_field_enhancer']]
  10. - [setConfigFactory, ['@config.factory']]
  11. serializer.normalizer.field_item.jsonapi_extras:
  12. class: Drupal\jsonapi\Normalizer\ImpostorFrom\jsonapi_extras\FieldItemNormalizerImpostor
  13. decorates: serializer.normalizer.field_item.jsonapi
  14. arguments:
  15. - '@serializer.normalizer.field_item.jsonapi_extras.inner'
  16. - '@entity_type.manager'
  17. - '@plugin.manager.resource_field_enhancer'
  18. serializer.normalizer.resource_identifier.jsonapi_extras:
  19. class: Drupal\jsonapi\Normalizer\ImpostorFrom\jsonapi_extras\ResourceIdentifierNormalizerImpostor
  20. decorates: serializer.normalizer.resource_identifier.jsonapi
  21. arguments:
  22. - '@serializer.normalizer.resource_identifier.jsonapi_extras.inner'
  23. - '@jsonapi.resource_type.repository'
  24. serializer.normalizer.resource_object.jsonapi_extras:
  25. class: Drupal\jsonapi\Normalizer\ImpostorFrom\jsonapi_extras\ResourceObjectNormalizerImpostor
  26. decorates: serializer.normalizer.resource_object.jsonapi
  27. arguments: ['@serializer.normalizer.resource_object.jsonapi_extras.inner']
  28. serializer.normalizer.content_entity.jsonapi_extras:
  29. class: Drupal\jsonapi\Normalizer\ImpostorFrom\jsonapi_extras\ContentEntityDenormalizerImpostor
  30. decorates: serializer.normalizer.content_entity.jsonapi
  31. arguments: ['@serializer.normalizer.content_entity.jsonapi_extras.inner']
  32. serializer.normalizer.config_entity.jsonapi_extras:
  33. class: Drupal\jsonapi\Normalizer\ImpostorFrom\jsonapi_extras\ConfigEntityDenormalizerImpostor
  34. decorates: serializer.normalizer.config_entity.jsonapi
  35. arguments: ['@serializer.normalizer.config_entity.jsonapi_extras.inner']
  36. plugin.manager.resource_field_enhancer:
  37. class: Drupal\jsonapi_extras\Plugin\ResourceFieldEnhancerManager
  38. parent: default_plugin_manager
  39. # Event subscribers.
  40. jsonapi_extras.config_subscriber:
  41. class: Drupal\jsonapi_extras\EventSubscriber\ConfigSubscriber
  42. arguments: ['@kernel', '@router.builder']
  43. tags:
  44. - { name: event_subscriber }
  45. jsonapi_extras.entity.to_jsonapi:
  46. class: Drupal\jsonapi_extras\EntityToJsonApi
  47. arguments:
  48. - '@http_kernel.basic'
  49. - '@jsonapi.resource_type.repository'
  50. - '@session'
  51. - '@request_stack'
  52. jsonapi_extras.jsonapi_build_subscriber:
  53. class: Drupal\jsonapi_extras\EventSubscriber\JsonApiBuildSubscriber
  54. arguments:
  55. - '@jsonapi_extras.resource_type.repository'
  56. tags:
  57. - { name: event_subscriber }