You are here

commerce_stock.services.yml in Commerce Stock 8

File

commerce_stock.services.yml
View source
  1. services:
  2. commerce_stock.availability_checker:
  3. class: Drupal\commerce_stock\StockAvailabilityChecker
  4. arguments: ['@commerce_stock.service_manager']
  5. tags:
  6. - { name: commerce_order.availability_checker, priority: 0 }
  7. commerce_stock.service_manager:
  8. class: Drupal\commerce_stock\StockServiceManager
  9. tags:
  10. - { name: service_collector, tag: commerce_stock.stock_service, call: addService }
  11. arguments: [ '@config.factory', '@commerce_store.current_store', '@current_user' ]
  12. commerce_stock.always_in_stock_service:
  13. class: Drupal\commerce_stock\AlwaysInStockService
  14. tags:
  15. - { name: commerce_stock.stock_service, priority: 0 }
  16. commerce_stock.order_event_subscriber:
  17. class: Drupal\commerce_stock\EventSubscriber\OrderEventSubscriber
  18. arguments: ['@commerce_stock.service_manager', '@plugin.manager.commerce_stock_event_type', '@plugin.manager.stock_events', '@entity_type.manager',]
  19. tags:
  20. - { name: 'event_subscriber' }
  21. plugin.manager.stock_events:
  22. class: Drupal\commerce_stock\StockEventsManager
  23. parent: default_plugin_manager
  24. plugin.manager.commerce_stock_event_type:
  25. class: Drupal\commerce_stock\StockEventTypeManager
  26. parent: default_plugin_manager