You are here

public static function CommerceStockTransactionSubscriber::create in Commerce Stock 8

@inheritDoc

Overrides ContainerInjectionInterface::create

File

modules/local_storage/tests/modules/commerce_stock_local_test/src/EventSubscriber/CommerceStockTransactionSubscriber.php, line 27

Class

CommerceStockTransactionSubscriber
Test class to test the commerce_stock transaction events.

Namespace

Drupal\commerce_stock_local_test\EventSubscriber

Code

public static function create(ContainerInterface $container) {
  $commerceStockTransactionSubscriber = new static();
  $commerceStockTransactionSubscriber
    ->setLoggerFactory($container
    ->get('logger.factory'));
  return $commerceStockTransactionSubscriber;
}