You are here

commerce_cart.services.yml in Commerce Core 8.2

modules/cart/commerce_cart.services.yml

File

modules/cart/commerce_cart.services.yml
View source
  1. services:
  2. cache_context.cart:
  3. class: Drupal\commerce_cart\Cache\Context\CartCacheContext
  4. arguments: ['@current_user', '@commerce_cart.cart_provider']
  5. tags:
  6. - { name: cache.context }
  7. commerce_cart.cron:
  8. class: Drupal\commerce_cart\Cron
  9. arguments: ['@entity_type.manager', '@queue']
  10. commerce_cart.cart_session:
  11. class: Drupal\commerce_cart\CartSession
  12. arguments: ['@session']
  13. commerce_cart.cart_provider:
  14. class: Drupal\commerce_cart\CartProvider
  15. arguments: ['@entity_type.manager', '@commerce_store.current_store', '@current_user', '@commerce_cart.cart_session']
  16. commerce_cart.cart_manager:
  17. class: Drupal\commerce_cart\CartManager
  18. arguments: ['@entity_type.manager', '@commerce_cart.order_item_matcher', '@event_dispatcher']
  19. commerce_cart.order_item_matcher:
  20. class: Drupal\commerce_cart\OrderItemMatcher
  21. arguments: ['@entity_type.manager', '@event_dispatcher']
  22. commerce_cart.cart_subscriber:
  23. class: Drupal\commerce_cart\EventSubscriber\CartEventSubscriber
  24. arguments: ['@messenger', '@string_translation']
  25. tags:
  26. - { name: event_subscriber }
  27. commerce_cart.order_subscriber:
  28. class: Drupal\commerce_cart\EventSubscriber\OrderEventSubscriber
  29. arguments: ['@commerce_cart.cart_provider']
  30. tags:
  31. - { name: event_subscriber }
  32. commerce_cart.query_access_subscriber:
  33. class: Drupal\commerce_cart\EventSubscriber\QueryAccessSubscriber
  34. arguments: ['@commerce_cart.cart_provider', '@commerce_cart.cart_session']
  35. tags:
  36. - { name: event_subscriber, priority: 100 }