You are here

commerce_cart_api.services.yml in Commerce Cart API 8

File

commerce_cart_api.services.yml
View source
  1. parameters:
  2. commerce_cart_api:
  3. use_cart_token_session: false
  4. normalized_entity_references:
  5. - order_items
  6. - purchased_entity
  7. services:
  8. commerce_cart_api.normalizer.field_item:
  9. class: Drupal\commerce_cart_api\Normalizer\FieldItemNormalizer
  10. arguments: ['@current_route_match']
  11. tags:
  12. - { name: normalizer, priority: 8 }
  13. commerce_cart_api.normalizer.field:
  14. class: Drupal\commerce_cart_api\Normalizer\FieldNormalizer
  15. arguments: ['@current_route_match']
  16. tags:
  17. - { name: normalizer, priority: 9 }
  18. commerce_cart_api.normalizer.entity_references:
  19. class: Drupal\commerce_cart_api\Normalizer\EntityReferenceNormalizer
  20. arguments: ['@entity.repository', '@current_route_match', '%commerce_cart_api%']
  21. tags:
  22. - { name: normalizer, priority: 9 }
  23. access_check.cart_api:
  24. class: Drupal\commerce_cart_api\Access\CartApiAccessCheck
  25. arguments: ['@commerce_cart.cart_provider']
  26. tags:
  27. - { name: access_check, applies_to: _cart_api }
  28. commerce_cart_api.routing_alter_subscriber:
  29. class: Drupal\commerce_cart_api\EventSubscriber\RoutingAlterSubscriber
  30. tags:
  31. - { name: 'event_subscriber' }
  32. commerce_cart_api.field_access:
  33. class: Drupal\commerce_cart_api\FieldAccess
  34. arguments: ['@current_route_match']