public function StockAvailabilityChecker::__construct in Commerce Stock 8
Constructs a new StockAvailabilityChecker object.
Parameters
\Drupal\commerce_stock\StockServiceManagerInterface $stock_service_manager: The stock service manager.
File
- src/
StockAvailabilityChecker.php, line 32
Class
- StockAvailabilityChecker
- The entry point for availability checking through Commerce Stock.
Namespace
Drupal\commerce_stockCode
public function __construct(StockServiceManagerInterface $stock_service_manager) {
$this->stockServiceManager = $stock_service_manager;
}