services:
  commerce_combine_carts.cart_unifier:
    class: Drupal\commerce_combine_carts\CartUnifier
    arguments: ['@commerce_cart.cart_provider', '@commerce_cart.cart_manager', '@current_route_match']

  commerce_customizations.cart_event_subscriber:
    class: '\Drupal\commerce_combine_carts\EventSubscriber\CartEventSubscriber'
    arguments: ['@commerce_combine_carts.cart_unifier']
    tags:
      - { name: 'event_subscriber' }
