You are here

public function OrderSubscriber::__construct in Drupal Commerce Connector for AvaTax 8

Constructs a new CommitTransactionSubscriber object.

Parameters

\Drupal\commerce_avatax\AvataxLibInterface $avatax_lib: The AvaTax library.

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

File

src/EventSubscriber/OrderSubscriber.php, line 38

Class

OrderSubscriber

Namespace

Drupal\commerce_avatax\EventSubscriber

Code

public function __construct(AvataxLibInterface $avatax_lib, ConfigFactoryInterface $config_factory) {
  $this->avataxLib = $avatax_lib;
  $this->config = $config_factory
    ->get('commerce_avatax.settings');
}