public function LocalStockService::__construct in Commerce Stock 8
Constructs a new LocalStockService object.
Parameters
\Drupal\commerce_stock\StockCheckInterface $stock_checker: The stock checker.
\Drupal\commerce_stock\StockUpdateInterface $stock_updater: The stock updater.
\Drupal\commerce_stock\StockServiceConfigInterface $stock_service_config: The stock configuration.
File
- modules/
local_storage/ src/ LocalStockService.php, line 47
Class
- LocalStockService
- The Local stock Service class.
Namespace
Drupal\commerce_stock_localCode
public function __construct(StockCheckInterface $stock_checker, StockUpdateInterface $stock_updater, StockServiceConfigInterface $stock_service_config) {
$this->stockChecker = $stock_checker;
$this->stockUpdater = $stock_updater;
$this->stockServiceConfig = $stock_service_config;
}