You are here

public static function LocalStockChecker::create in Commerce Stock 8

Creates an instance of the local stock checker.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The DI container.

Return value

static

File

modules/local_storage/src/LocalStockChecker.php, line 51

Class

LocalStockChecker
The stock checker implementation for the local stock module.

Namespace

Drupal\commerce_stock_local

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('database'), $container
    ->get('entity_type.manager'));
}