You are here

jsonapi_hypermedia.services.yml in JSON:API Hypermedia 8

File

jsonapi_hypermedia.services.yml
View source
  1. services:
  2. jsonapi_hypermedia_provider.manager:
  3. parent: default_plugin_manager
  4. class: Drupal\jsonapi_hypermedia\Plugin\LinkProviderManager
  5. calls:
  6. - [setCurrentRouteMatch, ['@current_route_match']]
  7. - [setLinkRelationTypeManager, ['@plugin.manager.link_relation_type']]
  8. serializer.normalizer.link_collection.jsonapi_hypermedia:
  9. class: Drupal\jsonapi\Normalizer\JsonapiHypermediaImpostor\JsonapiHypermediaLinkCollectionNormalizer
  10. decorates: serializer.normalizer.link_collection.jsonapi
  11. calls:
  12. - [setLinkProviderManager, ['@jsonapi_hypermedia_provider.manager']]
  13. - [setRenderer, ['@renderer']]
  14. # This tag is commented out because it breaks the namespace impostor workaround. However, this tag is manually replicated in the JsonApiHypermediaServiceProvider.
  15. # tags:
  16. # - { name: service_collector, tag: jsonapi_hypermedia_provider, call: addHypermediaProvider }