You are here

service commerce_stock.service_manager in Commerce Stock 8

Class

Drupal\commerce_stock\StockServiceManager

Tags

  • service_collector
21 string references to commerce_stock.service_manager
commerce_stock_enforcement_get_stock_level in modules/enforcement/commerce_stock_enforcement.module
Get the available stock level for the PurchasableEntity.
EnforcementBrowserTest::setUp in modules/enforcement/tests/src/Functional/EnforcementBrowserTest.php
LocalStockUpdaterTest::setUp in modules/local_storage/tests/src/Kernel/LocalStockUpdaterTest.php
OrderEventsTransactionsTest::setUp in modules/local_storage/tests/src/Kernel/OrderEventsTransactionsTest.php
OrderEventTransactionsKernelTest::setUp in modules/local_storage/tests/src/Kernel/OrderEventTransactionsKernelTest.php

... See full list

File

./commerce_stock.services.yml
commerce_stock.services.yml

View source
  1. class: Drupal\commerce_stock\StockServiceManager
  2. tags:
  3. - { name: service_collector, tag: commerce_stock.stock_service, call: addService }
  4. arguments:
  5. - '@config.factory'
  6. - '@commerce_store.current_store'
  7. - '@current_user'