You are here

public static function LocalStockUpdater::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/LocalStockUpdater.php, line 80

Class

LocalStockUpdater
Class LocalStockUpdater.

Namespace

Drupal\commerce_stock_local

Code

public static function create(ContainerInterface $container) {
  return new static($container
    ->get('database'), $container
    ->get('commerce_stock.local_stock_checker'), $container
    ->get('event_dispatcher'), $container
    ->get('entity_type_manager'));
}