You are here

public function StockServiceManager::__construct in Commerce Stock 8

Constructs a StockServiceManager object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\commerce_store\CurrentStoreInterface $current_store: The current store.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

File

src/StockServiceManager.php, line 62

Class

StockServiceManager
The stock service manager.

Namespace

Drupal\commerce_stock

Code

public function __construct(ConfigFactoryInterface $config_factory, CurrentStoreInterface $current_store, AccountInterface $current_user) {
  $this->configFactory = $config_factory;
  $this->currentStore = $current_store;
  $this->currentUser = $current_user;
}